]> granicus.if.org Git - python/commitdiff
Get rid of conflicting ^X binding. Use ^W.
authorGuido van Rossum <guido@python.org>
Fri, 16 Oct 1998 20:08:34 +0000 (20:08 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 16 Oct 1998 20:08:34 +0000 (20:08 +0000)
Tools/idle/Bindings.py
Tools/idle/EditorWindow.py
Tools/idle/README

index 4138d26b7c66a62fb137d40ee76d87364dce1c51..900c8504f447e36cecbd94702c36c05ab2e514a2 100644 (file)
@@ -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
index 1b9db06d1806fffd07d821ba13ad7e4d5e7eac37..fc8a8f1e4f19888c3106615099a0ec90513e0a7c 100644 (file)
@@ -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)
index e7551d4def3af7c60f575faba3f98ad467faf6d8..88b6052b753be9af292d7242e3b23b34508c4349 100644 (file)
@@ -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