aboutsummaryrefslogtreecommitdiffstats
path: root/java/com/tigervnc/vncviewer/PasswdDialog.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/com/tigervnc/vncviewer/PasswdDialog.java')
-rw-r--r--java/com/tigervnc/vncviewer/PasswdDialog.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/java/com/tigervnc/vncviewer/PasswdDialog.java b/java/com/tigervnc/vncviewer/PasswdDialog.java
index 4ff3f789..db0acd0c 100644
--- a/java/com/tigervnc/vncviewer/PasswdDialog.java
+++ b/java/com/tigervnc/vncviewer/PasswdDialog.java
@@ -96,12 +96,12 @@ class PasswdDialog extends Dialog implements UserInfo,
public void keyPressed(KeyEvent event) {
Object s = event.getSource();
if (s instanceof JTextField && (JTextField)s == userEntry) {
- if (event.getExtendedKeyCode() == KeyEvent.VK_ENTER) {
+ if (KeyMap.get_keycode_fallback_extended(event) == KeyEvent.VK_ENTER) {
endDialog();
}
} else if (s instanceof JPasswordField
&& (JPasswordField)s == passwdEntry) {
- if (event.getExtendedKeyCode() == KeyEvent.VK_ENTER) {
+ if (KeyMap.get_keycode_fallback_extended(event) == KeyEvent.VK_ENTER) {
endDialog();
}
}