diff options
author | Brian Hinz <bphinz@users.sourceforge.net> | 2012-05-16 03:51:42 +0000 |
---|---|---|
committer | Brian Hinz <bphinz@users.sourceforge.net> | 2012-05-16 03:51:42 +0000 |
commit | 605305341143de6c66fdac96e3cda4e7cf4b517d (patch) | |
tree | 92623d976651f322b7dc12008a94ea6c783d5435 /java/com/tigervnc/vncviewer/DesktopWindow.java | |
parent | 19810efe31bad78889dc001ecd8b62e2ee91bf30 (diff) | |
download | tigervnc-605305341143de6c66fdac96e3cda4e7cf4b517d.tar.gz tigervnc-605305341143de6c66fdac96e3cda4e7cf4b517d.zip |
Adds support for setting the menu key via cmd line arg. Adds all menu keys supported by native viewer to the combo box in the OptionsDialog.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4914 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'java/com/tigervnc/vncviewer/DesktopWindow.java')
-rw-r--r-- | java/com/tigervnc/vncviewer/DesktopWindow.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/java/com/tigervnc/vncviewer/DesktopWindow.java b/java/com/tigervnc/vncviewer/DesktopWindow.java index 178f93d2..3ef25f3a 100644 --- a/java/com/tigervnc/vncviewer/DesktopWindow.java +++ b/java/com/tigervnc/vncviewer/DesktopWindow.java @@ -409,8 +409,7 @@ class DesktopWindow extends JPanel implements public void keyReleased(KeyEvent e) {} /** Handle the key-pressed event. */ public void keyPressed(KeyEvent e) { - if (e.getKeyCode() == - (KeyEvent.VK_F1+cc.menuKey-Keysyms.F1)) { + if (e.getKeyCode() == menukey.getMenuKeyCode()) { int sx = (scaleWidthRatio == 1.00) ? lastX : (int)Math.floor(lastX*scaleWidthRatio); int sy = (scaleHeightRatio == 1.00) |