From 3c76a6d1eb6b375bdf973ff88988b12d12528bea Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Mon, 16 Feb 2015 16:31:51 +0100 Subject: [PATCH] Add shortcuts to context menu for quick access --- vncviewer/Viewport.cxx | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/vncviewer/Viewport.cxx b/vncviewer/Viewport.cxx index b319a81c..33ba24fe 100644 --- a/vncviewer/Viewport.cxx +++ b/vncviewer/Viewport.cxx @@ -1062,21 +1062,21 @@ void Viewport::initContextMenu() { contextMenu->clear(); - contextMenu->add(_("Exit viewer"), 0, NULL, (void*)ID_EXIT, FL_MENU_DIVIDER); + contextMenu->add(_("E&xit viewer"), 0, NULL, (void*)ID_EXIT, FL_MENU_DIVIDER); #ifdef HAVE_FLTK_FULLSCREEN - contextMenu->add(_("Full screen"), 0, NULL, (void*)ID_FULLSCREEN, + contextMenu->add(_("&Full screen"), 0, NULL, (void*)ID_FULLSCREEN, FL_MENU_TOGGLE | (window()->fullscreen_active()?FL_MENU_VALUE:0)); #endif - contextMenu->add(_("Resize window to session"), 0, NULL, (void*)ID_RESIZE, + contextMenu->add(_("Resize &window to session"), 0, NULL, (void*)ID_RESIZE, #ifdef HAVE_FLTK_FULLSCREEN (window()->fullscreen_active()?FL_MENU_INACTIVE:0) | #endif FL_MENU_DIVIDER); - contextMenu->add(_("Ctrl"), 0, NULL, (void*)ID_CTRL, + contextMenu->add(_("&Ctrl"), 0, NULL, (void*)ID_CTRL, FL_MENU_TOGGLE | (menuCtrlKey?FL_MENU_VALUE:0)); - contextMenu->add(_("Alt"), 0, NULL, (void*)ID_ALT, + contextMenu->add(_("&Alt"), 0, NULL, (void*)ID_ALT, FL_MENU_TOGGLE | (menuAltKey?FL_MENU_VALUE:0)); if (menuKeySym) { @@ -1086,15 +1086,15 @@ void Viewport::initContextMenu() contextMenu->add("Secret shortcut menu key", menuKeyCode, NULL, (void*)ID_MENUKEY, FL_MENU_INVISIBLE); } - contextMenu->add(_("Send Ctrl-Alt-Del"), 0, NULL, (void*)ID_CTRLALTDEL, FL_MENU_DIVIDER); + contextMenu->add(_("Send Ctrl-Alt-&Del"), 0, NULL, (void*)ID_CTRLALTDEL, FL_MENU_DIVIDER); - contextMenu->add(_("Refresh screen"), 0, NULL, (void*)ID_REFRESH, FL_MENU_DIVIDER); + contextMenu->add(_("&Refresh screen"), 0, NULL, (void*)ID_REFRESH, FL_MENU_DIVIDER); - contextMenu->add(_("Options..."), 0, NULL, (void*)ID_OPTIONS, 0); - contextMenu->add(_("Connection info..."), 0, NULL, (void*)ID_INFO, 0); - contextMenu->add(_("About TigerVNC viewer..."), 0, NULL, (void*)ID_ABOUT, FL_MENU_DIVIDER); + contextMenu->add(_("&Options..."), 0, NULL, (void*)ID_OPTIONS, 0); + contextMenu->add(_("Connection &info..."), 0, NULL, (void*)ID_INFO, 0); + contextMenu->add(_("About &TigerVNC viewer..."), 0, NULL, (void*)ID_ABOUT, FL_MENU_DIVIDER); - contextMenu->add(_("Dismiss menu"), 0, NULL, (void*)ID_DISMISS, 0); + contextMenu->add(_("Dismiss &menu"), 0, NULL, (void*)ID_DISMISS, 0); } -- 2.39.5