keybinding configuration

This commit is contained in:
Steven M. Gava 2002-01-19 01:30:56 +00:00
parent facfc09352
commit 68d7336cb0
2 changed files with 45 additions and 27 deletions

View file

@ -595,8 +595,9 @@ class ConfigDialog(Toplevel):
listIndex=self.listBindings.index(ANCHOR)
binding=self.listBindings.get(listIndex)
bindName=binding.split()[0] #first part, up to first space
newKeys=GetKeysDialog(self,'Get New Keys',bindName)
print newKeys.result
currentKeySet=idleConf.CurrentKeys()
currentKeySequences=idleConf.GetKeys(currentKeySet).values()
newKeys=GetKeysDialog(self,'Get New Keys',bindName,currentKeySequences)
if newKeys.result: #new keys were specified
self.listBindings.delete(listIndex)
self.listBindings.insert(listIndex,bindName+' - '+newKeys.result)