aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt
diff options
context:
space:
mode:
authorChuck Craft <bubbasnmp@gmail.com>2021-06-13 21:16:15 -0500
committerAndersBroman <a.broman58@gmail.com>2022-11-01 17:39:16 +0000
commit91c0669fb7d2dcf0910dd0e2784400044030e8dc (patch)
tree60a68d0710d87d2d09940440eb2d55aa3b3f03e1 /ui/qt
parent0bfa32ee6c1cbf406c7dd1a90d8bce253dbc6b19 (diff)
Qt: KeyboardInputInterval - allow more relaxed typing for keyboardSearch
Gtk popped up a search box when typing in the tree view. Most places in Qt, a Search: field was added to the dialog. Looks possible to buffer keystrokes and do a string search in Qt. Default value is 400ms (even on Windows). Average typing speed of 200 cpm = 300ms per character = too close to 400ms when searching the protocol name in Preferences -> Protocols.
Diffstat (limited to 'ui/qt')
-rw-r--r--ui/qt/main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/qt/main.cpp b/ui/qt/main.cpp
index c090a7d350..a3b5c8d6ab 100644
--- a/ui/qt/main.cpp
+++ b/ui/qt/main.cpp
@@ -651,6 +651,10 @@ int main(int argc, char *qt_argv[])
/* Create The Wireshark app */
WiresharkApplication ws_app(argc, qt_argv);
+ // Default value is 400ms = "quickly typing" when searching in Preferences->Protocols
+ // 1000ms allows a more "hunt/peck" typing speed. 2000ms tested - too long.
+ QApplication::setKeyboardInputInterval(1000);
+
/* initialize the funnel mini-api */
// xxx qtshark
//initialize_funnel_ops();