mirror of
https://github.com/python/cpython.git
synced 2025-11-11 19:12:05 +00:00
Merged revisions 88232 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r88232 | ned.deily | 2011-01-29 10:29:01 -0800 (Sat, 29 Jan 2011) | 5 lines 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. ........
This commit is contained in:
parent
7f41b88bb7
commit
60651535c9
2 changed files with 10 additions and 1 deletions
|
|
@ -1541,7 +1541,12 @@ def prepstr(s):
|
|||
|
||||
def get_accelerator(keydefs, 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 ""
|
||||
s = keylist[0]
|
||||
s = re.sub(r"-[a-z]\b", lambda m: m.group().upper(), s)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue