summaryrefslogtreecommitdiffstats
path: root/java/com/tigervnc/vncviewer/MenuKey.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/com/tigervnc/vncviewer/MenuKey.java')
-rw-r--r--java/com/tigervnc/vncviewer/MenuKey.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/java/com/tigervnc/vncviewer/MenuKey.java b/java/com/tigervnc/vncviewer/MenuKey.java
index 3fd63456..5248b000 100644
--- a/java/com/tigervnc/vncviewer/MenuKey.java
+++ b/java/com/tigervnc/vncviewer/MenuKey.java
@@ -79,7 +79,7 @@ public class MenuKey
if (VncViewer.os.startsWith("mac os x"))
return sym.name.replace("_", " ");
else
- return KeyEvent.getKeyText(sym.keycode);
+ return KeyEvent.getKeyText(sym.javacode);
}
public static String getMenuKeyValueStr() {
@@ -106,7 +106,7 @@ public class MenuKey
}
static int getMenuKeyCode() {
- int menuKeyCode = VK_F8;
+ int menuKeyCode = 0x42;
@SuppressWarnings({"static"})
String menuKeyStr =