From: Guido van Rossum Date: Fri, 16 Oct 1998 20:08:34 +0000 (+0000) Subject: Get rid of conflicting ^X binding. Use ^W. X-Git-Tag: v1.5.2a2~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=baf53b4ea820e5cb0787c2fd04de0c2b55d3de80;p=python Get rid of conflicting ^X binding. Use ^W. --- diff --git a/Tools/idle/Bindings.py b/Tools/idle/Bindings.py index 4138d26b7c..900c8504f4 100644 --- a/Tools/idle/Bindings.py +++ b/Tools/idle/Bindings.py @@ -82,9 +82,9 @@ emacs_bindings = [ ("edit", "Redo", "Alt-z", "<>", "", ""), ("edit", None, None), - ("edit", "Cut", None, "<>"), - ("edit", "Copy", None, "<>"), - ("edit", "Paste", None, "<>"), + ("edit", "Cut", None, "<>", ""), + ("edit", "Copy", None, "<>", ""), + ("edit", "Paste", None, "<>", ""), ("edit", None, None), ("edit", "Find...", "C-s", @@ -136,6 +136,8 @@ emacs_bindings = [ (None, None, None, "<>", ""), (None, None, None, "<>", ""), + + (None, None, None, "<>", ""), ] default_bindings = emacs_bindings diff --git a/Tools/idle/EditorWindow.py b/Tools/idle/EditorWindow.py index 1b9db06d18..fc8a8f1e4f 100644 --- a/Tools/idle/EditorWindow.py +++ b/Tools/idle/EditorWindow.py @@ -45,6 +45,7 @@ class EditorWindow: self.text.bind("<>", self.help_dialog) self.text.bind("<>", self.about_dialog) self.text.bind("<>", self.open_module) + self.text.bind("<>", lambda event: "break") vbar['command'] = text.yview vbar.pack(side=RIGHT, fill=Y) diff --git a/Tools/idle/README b/Tools/idle/README index e7551d4def..88b6052b75 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