Kaydet (Commit) 17db4954 authored tarafından Ronald Oussoren's avatar Ronald Oussoren

Without this patch CMD-W won't close EditorWindows on MacOS X. This solves

part of bug #1517990.
üst dce937f3
......@@ -121,6 +121,9 @@ class EditorWindow(object):
self.top.protocol("WM_DELETE_WINDOW", self.close)
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("<<copy>>", self.copy)
text.bind("<<paste>>", self.paste)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment