Kaydet (Commit) 70063937 authored tarafından Ned Deily's avatar Ned Deily

Issue #10940: Workaround an IDLE hang on Mac OS X 10.6 when using the

menu accelerators for Open Module, Go to Line, and New Indent Width.
The accelerators still work but no longer appear in the menu items.
üst 19e0a9e5
...@@ -1546,7 +1546,12 @@ keynames = { ...@@ -1546,7 +1546,12 @@ keynames = {
def get_accelerator(keydefs, eventname): def get_accelerator(keydefs, eventname):
keylist = keydefs.get(eventname) keylist = keydefs.get(eventname)
if not keylist: # issue10940: temporary workaround to prevent hang with OS X Cocoa Tk 8.5
# if not keylist:
if (not keylist) or (macosxSupport.runningAsOSXApp() and eventname in {
"<<open-module>>",
"<<goto-line>>",
"<<change-indentwidth>>"}):
return "" return ""
s = keylist[0] s = keylist[0]
s = re.sub(r"-[a-z]\b", lambda m: m.group().upper(), s) s = re.sub(r"-[a-z]\b", lambda m: m.group().upper(), s)
......
...@@ -16,6 +16,10 @@ Core and Builtins ...@@ -16,6 +16,10 @@ Core and Builtins
Library Library
------- -------
- Issue #10940: Workaround an IDLE hang on Mac OS X 10.6 when using the
menu accelerators for Open Module, Go to Line, and New Indent Width.
The accelerators still work but no longer appear in the menu items.
- Issue #10989: Fix a crash on SSLContext.load_verify_locations(None, True). - Issue #10989: Fix a crash on SSLContext.load_verify_locations(None, True).
- Issue #11020: Command-line pyclbr was broken because of missing 2-to-3 - Issue #11020: Command-line pyclbr was broken because of missing 2-to-3
......
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