From cdfc56b340a8120c9766b75a70f2af231609c4ac Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Sun, 3 Feb 2019 11:42:02 -0800 Subject: [PATCH] Qt: Add missing main menu mnemonics. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The GTK+ main menu had quite a few keyboard mnemonics which were missing in the Qt UI, most notably File → Open, File → Close, and File → Quit. Update ui/qt/main_window.ui from a list generated by running `grep -E 'NULL, +".*_.*"' ui/gtk/main_menubar.c` in a current master-2.6 checkout. BTW, the proper terminology to use here is unclear. Most places use "mnemonics": GTK+: Access keys https://developer.gnome.org/hig/stable/keyboard-input.html.en Qt: Mnemonics or accelerator keys http://doc.qt.io/qt-5/qkeysequence.html http://doc.qt.io/qt-5/accelerators.html Wikipedia: Mnemonics https://en.wikipedia.org/wiki/Keyboard_shortcut Windows: Menu access keys or mnemonics https://docs.microsoft.com/en-us/windows/desktop/menurc/about-menus Bug: 15475 Change-Id: Ibacbe066d4acfcea91125a980977d1610e3c0908 Reviewed-on: https://code.wireshark.org/review/31871 Reviewed-by: Gerald Combs Petri-Dish: Gerald Combs Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman --- ui/qt/main_window.ui | 58 ++++++++++++++++++++++---------------------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/ui/qt/main_window.ui b/ui/qt/main_window.ui index 31c3135bf4..80e3603cec 100644 --- a/ui/qt/main_window.ui +++ b/ui/qt/main_window.ui @@ -153,7 +153,7 @@ - Open Recent + Open &Recent @@ -311,7 +311,7 @@ - Name Resolution + Name Resol&ution @@ -525,7 +525,7 @@ - Service Response Time + Service &Response Time @@ -564,39 +564,39 @@ - RTP + &RTP - SCTP + S&CTP - ANSI + &ANSI - GSM + &GSM - LTE + &LTE - MTP3 + &MTP3 @@ -785,7 +785,7 @@ - Open + &Open Open a capture file @@ -799,7 +799,7 @@ - Quit + &Quit Quit Wireshark @@ -838,7 +838,7 @@ - Close + &Close Close this capture file @@ -1281,27 +1281,27 @@ - As CSV… + As &CSV… - As "C" Arrays… + As "C" &Arrays… - As PSML XML… + As P&SML XML… - As PDML XML… + As P&DML XML… - As JSON… + As &JSON… @@ -1453,7 +1453,7 @@ - Display Filters… + Display &Filters… @@ -1529,7 +1529,7 @@ - Unmark All Displayed + &Unmark All Displayed Unmark all displayed packets @@ -1587,7 +1587,7 @@ Unignore All Displayed - Unignore all displayed packets + U&nignore all displayed packets Ctrl+Alt+D @@ -1672,7 +1672,7 @@ false - Configuration Profiles… + &Configuration Profiles… Configuration profiles @@ -2151,7 +2151,7 @@ - Conversations + &Conversations Conversations at different protocol levels @@ -2159,7 +2159,7 @@ - Endpoints + &Endpoints Endpoints at different protocol levels @@ -2537,7 +2537,7 @@ - Conversation Hash Tables + &Conversation Hash Tables Show each conversation hash table @@ -2545,7 +2545,7 @@ - Dissector Tables + &Dissector Tables Show each dissector table and its entries @@ -2553,7 +2553,7 @@ - Supported Protocols + &Supported Protocols Show the currently supported protocols and display filter fields @@ -2585,7 +2585,7 @@ - RLC Graph + RLC &Graph LTE RLC graph @@ -2879,7 +2879,7 @@ - IAX2 Stream Analysis + IA&X2 Stream Analysis IAX2 Stream Analysis @@ -2930,7 +2930,7 @@ - Go to Linked Packet + Go to &Linked Packet Go to the packet referenced by the selected field.