diff options
author | Josh Blum | 2009-09-10 17:38:53 -0700 |
---|---|---|
committer | Josh Blum | 2009-09-10 17:38:53 -0700 |
commit | 14ae3c5141e3d39b89a4aac19681ec8ac7cd05ee (patch) | |
tree | a12a1d2edaa58efab0de4587faa7ccb66aa7f580 /grc/gui/Actions.py | |
parent | ab55c4a6e5f9a21ea743b78ea5a8206cf3d4ffe6 (diff) | |
download | gnuradio-14ae3c5141e3d39b89a4aac19681ec8ac7cd05ee.tar.gz gnuradio-14ae3c5141e3d39b89a4aac19681ec8ac7cd05ee.tar.bz2 gnuradio-14ae3c5141e3d39b89a4aac19681ec8ac7cd05ee.zip |
rename variable, use keysyms in props dialog
Diffstat (limited to 'grc/gui/Actions.py')
-rw-r--r-- | grc/gui/Actions.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/grc/gui/Actions.py b/grc/gui/Actions.py index d3d63f293..cacee22ce 100644 --- a/grc/gui/Actions.py +++ b/grc/gui/Actions.py @@ -98,7 +98,7 @@ _actions_key_list = ( ) _actions_key_dict = dict(((key_val, mod_mask), action_name) for action_name, key_val, mod_mask in _actions_key_list) -_all_mods_mask = reduce(lambda x, y: x | y, [mod_mask for action_name, key_val, mod_mask in _actions_key_list], NO_MODS_MASK) +_used_mods_mask = reduce(lambda x, y: x | y, [mod_mask for action_name, key_val, mod_mask in _actions_key_list], NO_MODS_MASK) def get_action_name_from_key_press(key_val, mod_mask=NO_MODS_MASK): """ Get the action name associated with the key value and mask. @@ -107,7 +107,7 @@ def get_action_name_from_key_press(key_val, mod_mask=NO_MODS_MASK): @param mod_mask the key press mask (shift, ctrl) 0 for none @return the action name or blank string """ - mod_mask &= _all_mods_mask #ignore irrelevant modifiers + mod_mask &= _used_mods_mask #ignore irrelevant modifiers key_val_mod_mask = (key_val, mod_mask) try: return _actions_key_dict[key_val_mod_mask] except KeyError: return '' |