diff options
author | Guido van Rossum <guido@python.org> | 1998-10-16 20:08:34 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-10-16 20:08:34 (GMT) |
commit | baf53b4ea820e5cb0787c2fd04de0c2b55d3de80 (patch) | |
tree | 14285876ba3ad1073d52d1c1e170b1af7f5094fd | |
parent | 5188a25efe3b62dd863dac12ff6fcbeb416f5740 (diff) | |
download | cpython-baf53b4ea820e5cb0787c2fd04de0c2b55d3de80.zip cpython-baf53b4ea820e5cb0787c2fd04de0c2b55d3de80.tar.gz cpython-baf53b4ea820e5cb0787c2fd04de0c2b55d3de80.tar.bz2 |
Get rid of conflicting ^X binding. Use ^W.
-rw-r--r-- | Tools/idle/Bindings.py | 8 | ||||
-rw-r--r-- | Tools/idle/EditorWindow.py | 1 | ||||
-rw-r--r-- | Tools/idle/README | 6 |
3 files changed, 7 insertions, 8 deletions
diff --git a/Tools/idle/Bindings.py b/Tools/idle/Bindings.py index 4138d26..900c850 100644 --- a/Tools/idle/Bindings.py +++ b/Tools/idle/Bindings.py @@ -82,9 +82,9 @@ emacs_bindings = [ ("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", @@ -136,6 +136,8 @@ emacs_bindings = [ (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 diff --git a/Tools/idle/EditorWindow.py b/Tools/idle/EditorWindow.py index 1b9db06..fc8a8f1 100644 --- a/Tools/idle/EditorWindow.py +++ b/Tools/idle/EditorWindow.py @@ -45,6 +45,7 @@ class EditorWindow: 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) diff --git a/Tools/idle/README b/Tools/idle/README index e7551d4..88b6052 100644 --- a/Tools/idle/README +++ b/Tools/idle/README @@ -1,10 +1,6 @@ -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 |