def get(self, char): if char in ac.k_ctrl_w: self.finish() if char in self.hotkeys : self.editor.do_command(self.hotkeys[char]) elif ac.is_safe_char(char): self.editor.insert_char(char)
def get(self, char): if char in self.shortcuts: self.do_command(self.shortcuts[char]) elif char in self.shortcuts_ui: self._editor.do_command(self.shortcuts_ui[char]) elif char == self.shortcuts_2nd_start: char = self.read_secret() if char in self.shortcuts_ui_2nd: self._editor.do_command(self.shortcuts_ui_2nd[char]) elif ac.is_safe_char(char): self._editor.insert_char(char) self._editor.bottom_bar()
def get(self, char): if char in self.shortcuts: self.do_command(self.shortcuts[char]) elif char in self.shortcuts_ui : self._editor.do_command(self.shortcuts_ui[char]) elif char == self.shortcuts_2nd_start : char = self.read_secret() if char in self.shortcuts_ui_2nd: self._editor.do_command(self.shortcuts_ui_2nd[char]) elif ac.is_safe_char(char): self._editor.insert_char(char) self._editor.bottom_bar()
def acceptable(self, u_data): return ac.is_safe_char(u_data)