diff options
author | Pierre Ossman <ossman@cendio.se> | 2015-02-16 16:31:51 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2015-02-16 16:31:51 +0100 |
commit | 3c76a6d1eb6b375bdf973ff88988b12d12528bea (patch) | |
tree | 4bc214894b084995cbd4796e1d49222d4a436886 /vncviewer/Viewport.cxx | |
parent | 83e019f599f409d60c12a3c0096f6b6d228d9fb1 (diff) | |
download | tigervnc-3c76a6d1eb6b375bdf973ff88988b12d12528bea.tar.gz tigervnc-3c76a6d1eb6b375bdf973ff88988b12d12528bea.zip |
Add shortcuts to context menu for quick access
Diffstat (limited to 'vncviewer/Viewport.cxx')
-rw-r--r-- | vncviewer/Viewport.cxx | 22 |
1 files 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); } |