summaryrefslogtreecommitdiff
path: root/grc/gui/BlockTreeWindow.py
diff options
context:
space:
mode:
authorSebastian Koslowski <koslowski@kit.edu>2013-10-16 14:08:20 +0200
committerSebastian Koslowski <koslowski@kit.edu>2013-10-24 19:06:46 +0200
commite58fcceb221eeb8d9c54a303d76719283a27565c (patch)
tree6578816325c4cc9e3a16db609fcd34179cc11f85 /grc/gui/BlockTreeWindow.py
parent510a96615da4b2511e08da2d7a16e77e1b58a1b5 (diff)
Add 'Find Blocks' action and auto-hide search entry box
Diffstat (limited to 'grc/gui/BlockTreeWindow.py')
-rw-r--r--grc/gui/BlockTreeWindow.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/grc/gui/BlockTreeWindow.py b/grc/gui/BlockTreeWindow.py
index 013809cdea..fcb53086d3 100644
--- a/grc/gui/BlockTreeWindow.py
+++ b/grc/gui/BlockTreeWindow.py
@@ -192,6 +192,7 @@ class BlockTreeWindow(gtk.VBox):
pass
elif icon == gtk.ENTRY_ICON_SECONDARY:
widget.set_text('')
+ self.search_entry.hide()
def _update_search_tree(self, widget):
key = widget.get_text().lower()
@@ -231,6 +232,12 @@ class BlockTreeWindow(gtk.VBox):
elif event.keyval == gtk.keysyms.Escape:
# reset the search
self.search_entry.set_text('')
+ self.search_entry.hide()
+
+ elif event.state & gtk.gdk.CONTROL_MASK and event.keyval == gtk.keysyms.f:
+ # propagation doesn't work although treeview search is disabled =(
+ # manually trigger action...
+ Actions.FIND_BLOCKS.activate()
else:
return False # propagate event