mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
improvement to keybinding re-use check
This commit is contained in:
parent
9f25e67dd7
commit
e28ee754b0
4 changed files with 80 additions and 86 deletions
|
@ -561,7 +561,16 @@ class ConfigDialog(Toplevel):
|
|||
listIndex=self.listBindings.index(ANCHOR)
|
||||
binding=self.listBindings.get(listIndex)
|
||||
bindName=binding.split()[0] #first part, up to first space
|
||||
currentKeySequences=idleConf.GetCurrentKeySet().values()
|
||||
if self.keysAreBuiltin.get():
|
||||
currentKeySetName=self.builtinKeys.get()
|
||||
else:
|
||||
currentKeySetName=self.customKeys.get()
|
||||
currentBindings=idleConf.GetCurrentKeySet()
|
||||
if currentKeySetName in self.changedItems['keys'].keys(): #unsaved changes
|
||||
keySetChanges=self.changedItems['keys'][currentKeySetName]
|
||||
for event in keySetChanges.keys():
|
||||
currentBindings[event]=keySetChanges[event].split()
|
||||
currentKeySequences=currentBindings.values()
|
||||
newKeys=GetKeysDialog(self,'Get New Keys',bindName,
|
||||
currentKeySequences).result
|
||||
if newKeys: #new keys were specified
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue