diff --git a/src/main/java/org/broad/igv/util/LoginDialog.java b/src/main/java/org/broad/igv/util/LoginDialog.java index e99d2a271c..8ed8546fab 100644 --- a/src/main/java/org/broad/igv/util/LoginDialog.java +++ b/src/main/java/org/broad/igv/util/LoginDialog.java @@ -165,6 +165,7 @@ public void actionPerformed(ActionEvent e) { okButtonActionPerformed(e); } }); + this.getRootPane().setDefaultButton(okButton); buttonBar.add(okButton, new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 5), 0, 0));