Changeset 18175


Ignore:
Timestamp:
2008-12-11T14:37:10+13:00 (15 years ago)
Author:
ak19
Message:

Fixed bug I introduced 2 of my commits ago: When in the Enrich Dialog assigning folder-level metadata, if you press enter in the textfield a WarningDialog pops up and the Enter press propagates into the dialog and the OK button is activated which made the WarningDialog disappear almost instantly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gli/trunk/src/org/greenstone/gatherer/gui/WarningDialog.java

    r18130 r18175  
    149149        show_check = new JCheckBox(Dictionary.get("WarningDialog.Dont_Show_Again"));
    150150        bottom_pane.add(show_check, BorderLayout.CENTER);
    151         getRootPane().setDefaultButton(ok_button);
    152151    }
    153152
     
    198197
    199198    /** Gives notification of key events on the buttons */
    200     public void keyPressed(KeyEvent e) {}
    201 
    202     public void keyReleased(KeyEvent e) {
     199    public void keyPressed(KeyEvent e) {
    203200    if (e.getKeyCode() == KeyEvent.VK_ENTER) {
    204201        // Enter: Click the button in focus
     
    209206    }
    210207    }
     208
     209    public void keyReleased(KeyEvent e) {}
    211210
    212211    public void keyTyped(KeyEvent e) {}
Note: See TracChangeset for help on using the changeset viewer.