diff options
author | Roland Knall <rknall@gmail.com> | 2017-06-19 15:57:04 +0200 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2017-06-19 15:23:15 +0000 |
commit | d83176ed2edffe59badd75d8ee98c77227fd357f (patch) | |
tree | c44f2080226d8f21a993911dd904f3a5da00b89b /ui/qt/search_frame.cpp | |
parent | 193cef0bcbcab25b95b4f124920d004ceaa7ae8a (diff) |
SearchBar - Focus on shortcut instead of closing
If the searchbar is already open focus on the bar and highlight
existing test, instead of closing an already open bar
Change-Id: I4f8ae2e903cb65c0ebca238f3bcc1c62b63b5c3b
Reviewed-on: https://code.wireshark.org/review/22223
Reviewed-by: Roland Knall <rknall@gmail.com>
Petri-Dish: Roland Knall <rknall@gmail.com>
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'ui/qt/search_frame.cpp')
-rw-r--r-- | ui/qt/search_frame.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/qt/search_frame.cpp b/ui/qt/search_frame.cpp index ffe6c183b1..b1533d4686 100644 --- a/ui/qt/search_frame.cpp +++ b/ui/qt/search_frame.cpp @@ -109,6 +109,7 @@ void SearchFrame::findPrevious() void SearchFrame::setFocus() { sf_ui_->searchLineEdit->setFocus(); + sf_ui_->searchLineEdit->selectAll(); cap_file_->dir = SD_FORWARD; } |