Ejemplo n.º 1
0
 def configure(self):
     self.keymap = ckit.Keymap()
     self.keymap["Return"] = self.command.Edit
     self.keymap["C-C"] = self.command.SetClipboard
     self.keymap["C-V"] = self.command.AppendFromClipboard
     self.keymap["C-Z"] = self.command.Undo
     self.keymap["C-T"] = self.command.ToggleLineMode
     self.keymap["Delete"] = self.command.Delete
     ckit.callConfigFunc("configure_MemoWindow", self)
Ejemplo n.º 2
0
 def configure(self):
     self.keymap = ckit.Keymap()
     self.keymap["Up"] = self.command.CursorUp
     self.keymap["Down"] = self.command.CursorDown
     self.keymap["PageUp"] = self.command.CursorPageUp
     self.keymap["PageDown"] = self.command.CursorPageDown
     self.keymap["Return"] = self.command.Enter
     self.keymap["Escape"] = self.command.Cancel
     if not self.onekey_search:
         self.keymap["F"] = self.command.IncrementalSearch
     ckit.callConfigFunc("configure_ListWindow", self)