mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Fix for issue5194, based on a patch by Ned Deily.
This commit is contained in:
parent
de09acf298
commit
827822ef3f
8 changed files with 65 additions and 15 deletions
|
@ -4,6 +4,7 @@ Dialog for building Tkinter accelerator key bindings
|
|||
from tkinter import *
|
||||
import tkinter.messagebox as tkMessageBox
|
||||
import string
|
||||
from idlelib import macosxSupport
|
||||
|
||||
class GetKeysDialog(Toplevel):
|
||||
def __init__(self,parent,title,action,currentKeySequences):
|
||||
|
@ -133,7 +134,7 @@ class GetKeysDialog(Toplevel):
|
|||
config-keys.def must use the same ordering.
|
||||
"""
|
||||
import sys
|
||||
if sys.platform == 'darwin' and sys.argv[0].count('.app'):
|
||||
if macosxSupport.runningAsOSXApp():
|
||||
self.modifiers = ['Shift', 'Control', 'Option', 'Command']
|
||||
else:
|
||||
self.modifiers = ['Control', 'Alt', 'Shift']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue