diff options
author | Uli Heilmeier <uh@heilmeier.eu> | 2016-05-09 07:14:38 +0200 |
---|---|---|
committer | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2016-05-15 13:51:12 +0000 |
commit | 92cce488308c839aa4949de7cb8bfb0f9a3ac5e2 (patch) | |
tree | 35c4ace839ba97fe7cb3df32785d06f9e5aaf786 /ui | |
parent | c38f4e1391cc914271e168606cc1e8adcc973bd8 (diff) |
GUI: Add shortcut for packet and capture comment
Added "Ctrl+Alt+C" as shortcut for packet comment.
Added "Ctrl+Alt+Shift+C" as shortcut for capture comment (GTK)
resp. for Capture File Properties (QT)
Bug: 12410
Change-Id: I1ba61a38829c35f3bb166a94cda4bec3901c7ef1
Reviewed-on: https://code.wireshark.org/review/15300
Reviewed-by: Michael Mann <mmann78@netscape.net>
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/gtk/main_menubar.c | 4 | ||||
-rw-r--r-- | ui/qt/main_window.ui | 6 |
2 files changed, 8 insertions, 2 deletions
diff --git a/ui/gtk/main_menubar.c b/ui/gtk/main_menubar.c index 751b7db862..9eaeb71655 100644 --- a/ui/gtk/main_menubar.c +++ b/ui/gtk/main_menubar.c @@ -1371,8 +1371,8 @@ static const GtkActionEntry main_menu_bar_entries[] = { #ifdef WANT_PACKET_EDITOR { "/Edit/EditPacket", NULL, "_Edit Packet", NULL, NULL, G_CALLBACK(edit_window_cb) }, #endif - { "/Edit/AddEditPktComment", WIRESHARK_STOCK_EDIT, "Packet Comment...", NULL, NULL, G_CALLBACK(edit_packet_comment_dlg) }, - { "/Edit/AddEditCaptureComment", NULL, "Capture Comment...", NULL, NULL, G_CALLBACK(edit_capture_comment_dlg_launch) }, + { "/Edit/AddEditPktComment", WIRESHARK_STOCK_EDIT, "Packet Comment...", "<alt><control>C", NULL, G_CALLBACK(edit_packet_comment_dlg) }, + { "/Edit/AddEditCaptureComment", NULL, "Capture Comment...", "<shift><alt><control>C", NULL, G_CALLBACK(edit_capture_comment_dlg_launch) }, { "/View/TimeDisplayFormat", NULL, "_Time Display Format", NULL, NULL, NULL }, diff --git a/ui/qt/main_window.ui b/ui/qt/main_window.ui index ce094f42fc..4a8d3ca2ec 100644 --- a/ui/qt/main_window.ui +++ b/ui/qt/main_window.ui @@ -1599,6 +1599,9 @@ <property name="toolTip"> <string>Add or change a packet comment</string> </property> + <property name="shortcut"> + <string notr="true">Ctrl+Alt+C</string> + </property> </action> <action name="actionEditConfigurationProfiles"> <property name="checkable"> @@ -1644,6 +1647,9 @@ <property name="toolTip"> <string>Capture file properties</string> </property> + <property name="shortcut"> + <string notr="true">Ctrl+Alt+Shift+C</string> + </property> </action> <action name="actionStatisticsProtocolHierarchy"> <property name="enabled"> |