diff options
author | Chris Donohue <christopher.donohue@gmail.com> | 2020-02-07 10:36:51 -0500 |
---|---|---|
committer | devnulling <devnulling@users.noreply.github.com> | 2020-02-09 09:39:25 -0800 |
commit | 8c8828804bea0095439fe59d249173969a7d31f8 (patch) | |
tree | 3ab756aa2b415bf47ff585d7cce3fe24bf694c6b /grc | |
parent | 38cdeafdff19f1d49fc5d556b23e5ac22c580565 (diff) |
grc: ctrl+a now selects all text if search box in focus
Diffstat (limited to 'grc')
-rw-r--r-- | grc/gui/Application.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/grc/gui/Application.py b/grc/gui/Application.py index efdb437c7c..e33e8c7c89 100644 --- a/grc/gui/Application.py +++ b/grc/gui/Application.py @@ -225,7 +225,10 @@ class Application(Gtk.Application): elif action == Actions.NOTHING_SELECT: flow_graph.unselect() elif action == Actions.SELECT_ALL: - flow_graph.select_all() + if main.btwin.search_entry.has_focus(): + main.btwin.search_entry.select_region(0, -1) + else: + flow_graph.select_all() ################################################## # Enable/Disable ################################################## |