("edit", "Redo", "Alt-z", "<<redo>>", "<Alt-z>", "<Meta-z>"),
("edit", None, None),
- ("edit", "Cut", None, "<<Cut>>"),
- ("edit", "Copy", None, "<<Copy>>"),
- ("edit", "Paste", None, "<<Paste>>"),
+ ("edit", "Cut", None, "<<Cut>>", "<Control-w>"),
+ ("edit", "Copy", None, "<<Copy>>", "<Alt-w>"),
+ ("edit", "Paste", None, "<<Paste>>", "<Control-y>"),
("edit", None, None),
("edit", "Find...", "C-s",
(None, None, None, "<<toggle-auto-coloring>>", "<Control-slash>"),
(None, None, None, "<<dump-undo-state>>", "<Control-backslash>"),
+
+ (None, None, None, "<<do-nothing>>", "<Control-x>"),
]
default_bindings = emacs_bindings
self.text.bind("<<help>>", self.help_dialog)
self.text.bind("<<about-idle>>", self.about_dialog)
self.text.bind("<<open-module>>", self.open_module)
+ self.text.bind("<<do-nothing>>", lambda event: "break")
vbar['command'] = text.yview
vbar.pack(side=RIGHT, fill=Y)
-BUGS:
-
-- when there's a selection, typing ^X will delete the selection!
- (cause: ^X is a binding for cut ;-( )
-
TO DO:
+- "Recent documents" menu item
- use platform specific default bindings
- title and Windows menu should have base filename first
- restructure state sensitive code to avoid testing flags all the time