mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
Without this patch CMD-W won't close EditorWindows on MacOS X. This solves
part of bug #1517990.
This commit is contained in:
parent
dce937f32c
commit
17db495445
1 changed files with 3 additions and 0 deletions
|
|
@ -121,6 +121,9 @@ def __init__(self, flist=None, filename=None, key=None, root=None):
|
||||||
|
|
||||||
self.top.protocol("WM_DELETE_WINDOW", self.close)
|
self.top.protocol("WM_DELETE_WINDOW", self.close)
|
||||||
self.top.bind("<<close-window>>", self.close_event)
|
self.top.bind("<<close-window>>", self.close_event)
|
||||||
|
if macosxSupport.runningAsOSXApp():
|
||||||
|
# Command-W on editorwindows doesn't work without this.
|
||||||
|
text.bind('<<close-window', self.close_event)
|
||||||
text.bind("<<cut>>", self.cut)
|
text.bind("<<cut>>", self.cut)
|
||||||
text.bind("<<copy>>", self.copy)
|
text.bind("<<copy>>", self.copy)
|
||||||
text.bind("<<paste>>", self.paste)
|
text.bind("<<paste>>", self.paste)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue