summaryrefslogtreecommitdiff
path: root/grc/src/gui/ActionHandler.py
diff options
context:
space:
mode:
authorjblum2008-11-28 00:34:51 +0000
committerjblum2008-11-28 00:34:51 +0000
commit277aa8d20c9db1c3de915d284db9e420f3d9f2f6 (patch)
tree888e7608d4848c643eea5bc9cd799f3cca08971f /grc/src/gui/ActionHandler.py
parentf8fe10054cba4a8dbf012f328eb86c9ef1c75869 (diff)
downloadgnuradio-277aa8d20c9db1c3de915d284db9e420f3d9f2f6.tar.gz
gnuradio-277aa8d20c9db1c3de915d284db9e420f3d9f2f6.tar.bz2
gnuradio-277aa8d20c9db1c3de915d284db9e420f3d9f2f6.zip
blocks window position pref
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10079 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'grc/src/gui/ActionHandler.py')
-rw-r--r--grc/src/gui/ActionHandler.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/grc/src/gui/ActionHandler.py b/grc/src/gui/ActionHandler.py
index cb31b3756..85bfcb34e 100644
--- a/grc/src/gui/ActionHandler.py
+++ b/grc/src/gui/ActionHandler.py
@@ -75,8 +75,12 @@ class ActionHandler:
def _handle_key_press(self, widget, event):
"""
- Handle key presses from the keyboard.
- Translate key combos into actions.
+ Handle key presses from the keyboard and translate key combos into actions.
+ This key press handler is called before the gtk accelerators kick in.
+ This handler ensures that key presses without a mod mask, only pass to the accelerators
+ if the flow graph is in focus and something is selected.
+ This function also handles keys that accelerators refuse to handle: left/right,
+ and keys that are not registered with an accelerator: +/-.
@return false to let the accelerators handle the key action
"""
if self.get_focus_flag() and self.get_flow_graph().is_selected():