From: Ronald Oussoren Date: Sun, 23 Jul 2006 09:41:09 +0000 (+0000) Subject: Without this patch CMD-W won't close EditorWindows on MacOS X. This solves X-Git-Tag: v2.5b3~191 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17db495445ba1f6c9d360ade62471d49ceb05cfe;p=thirdparty%2FPython%2Fcpython.git Without this patch CMD-W won't close EditorWindows on MacOS X. This solves part of bug #1517990. --- diff --git a/Lib/idlelib/EditorWindow.py b/Lib/idlelib/EditorWindow.py index 5dca4c1f8288..442d7187f527 100644 --- a/Lib/idlelib/EditorWindow.py +++ b/Lib/idlelib/EditorWindow.py @@ -121,6 +121,9 @@ class EditorWindow(object): self.top.protocol("WM_DELETE_WINDOW", self.close) self.top.bind("<>", self.close_event) + if macosxSupport.runningAsOSXApp(): + # Command-W on editorwindows doesn't work without this. + text.bind('<>", self.cut) text.bind("<>", self.copy) text.bind("<>", self.paste)