mirror of
https://github.com/python/cpython.git
synced 2025-09-18 14:40:43 +00:00
Get rid of conflicting ^X binding. Use ^W.
This commit is contained in:
parent
5188a25efe
commit
baf53b4ea8
3 changed files with 7 additions and 8 deletions
|
@ -82,9 +82,9 @@ emacs_bindings = [
|
||||||
("edit", "Redo", "Alt-z", "<<redo>>", "<Alt-z>", "<Meta-z>"),
|
("edit", "Redo", "Alt-z", "<<redo>>", "<Alt-z>", "<Meta-z>"),
|
||||||
("edit", None, None),
|
("edit", None, None),
|
||||||
|
|
||||||
("edit", "Cut", None, "<<Cut>>"),
|
("edit", "Cut", None, "<<Cut>>", "<Control-w>"),
|
||||||
("edit", "Copy", None, "<<Copy>>"),
|
("edit", "Copy", None, "<<Copy>>", "<Alt-w>"),
|
||||||
("edit", "Paste", None, "<<Paste>>"),
|
("edit", "Paste", None, "<<Paste>>", "<Control-y>"),
|
||||||
("edit", None, None),
|
("edit", None, None),
|
||||||
|
|
||||||
("edit", "Find...", "C-s",
|
("edit", "Find...", "C-s",
|
||||||
|
@ -136,6 +136,8 @@ emacs_bindings = [
|
||||||
(None, None, None, "<<toggle-auto-coloring>>", "<Control-slash>"),
|
(None, None, None, "<<toggle-auto-coloring>>", "<Control-slash>"),
|
||||||
|
|
||||||
(None, None, None, "<<dump-undo-state>>", "<Control-backslash>"),
|
(None, None, None, "<<dump-undo-state>>", "<Control-backslash>"),
|
||||||
|
|
||||||
|
(None, None, None, "<<do-nothing>>", "<Control-x>"),
|
||||||
]
|
]
|
||||||
|
|
||||||
default_bindings = emacs_bindings
|
default_bindings = emacs_bindings
|
||||||
|
|
|
@ -45,6 +45,7 @@ class EditorWindow:
|
||||||
self.text.bind("<<help>>", self.help_dialog)
|
self.text.bind("<<help>>", self.help_dialog)
|
||||||
self.text.bind("<<about-idle>>", self.about_dialog)
|
self.text.bind("<<about-idle>>", self.about_dialog)
|
||||||
self.text.bind("<<open-module>>", self.open_module)
|
self.text.bind("<<open-module>>", self.open_module)
|
||||||
|
self.text.bind("<<do-nothing>>", lambda event: "break")
|
||||||
|
|
||||||
vbar['command'] = text.yview
|
vbar['command'] = text.yview
|
||||||
vbar.pack(side=RIGHT, fill=Y)
|
vbar.pack(side=RIGHT, fill=Y)
|
||||||
|
|
|
@ -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:
|
TO DO:
|
||||||
|
|
||||||
|
- "Recent documents" menu item
|
||||||
- use platform specific default bindings
|
- use platform specific default bindings
|
||||||
- title and Windows menu should have base filename first
|
- title and Windows menu should have base filename first
|
||||||
- restructure state sensitive code to avoid testing flags all the time
|
- restructure state sensitive code to avoid testing flags all the time
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue