* Bug #15072 fixed: The context was stored as a root diagram attribute instead of...
[scilab.git] / scilab / modules / xcos / src / java / org / scilab / modules / xcos / actions / dialog / SetContextDialog.java
index 994d53d..9938abf 100644 (file)
@@ -24,6 +24,7 @@ import java.awt.Image;
 import java.awt.Insets;
 import java.awt.event.ActionEvent;
 import java.awt.event.ActionListener;
+import java.awt.event.KeyEvent;
 import java.beans.PropertyVetoException;
 import java.io.File;
 import java.io.FileWriter;
@@ -121,6 +122,7 @@ public class SetContextDialog extends JDialog {
 
         JButton cancelButton = new JButton(XcosMessages.CANCEL);
         JButton okButton = new JButton(XcosMessages.OK);
+        okButton.setMnemonic(KeyEvent.VK_ENTER);
         okButton.setPreferredSize(cancelButton.getPreferredSize());
 
         JPanel buttonPane = new JPanel();