aboutsummaryrefslogtreecommitdiffstats
path: root/java/com/tigervnc/vncviewer/ServerDialog.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/com/tigervnc/vncviewer/ServerDialog.java')
-rw-r--r--java/com/tigervnc/vncviewer/ServerDialog.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/com/tigervnc/vncviewer/ServerDialog.java b/java/com/tigervnc/vncviewer/ServerDialog.java
index c7067f53..ab7157d2 100644
--- a/java/com/tigervnc/vncviewer/ServerDialog.java
+++ b/java/com/tigervnc/vncviewer/ServerDialog.java
@@ -87,7 +87,7 @@ class ServerDialog extends Dialog implements Runnable {
public void keyTyped(KeyEvent e) {}
public void keyReleased(KeyEvent e) {}
public void keyPressed(KeyEvent e) {
- if (e.getKeyCode() == KeyEvent.VK_ENTER) {
+ if (e.getExtendedKeyCode() == KeyEvent.VK_ENTER) {
serverName.insertItemAt(editor.getItem(), 0);
serverName.setSelectedIndex(0);
handleConnect();