mirror of
https://github.com/correl/mage.git
synced 2024-11-14 19:19:32 +00:00
UI: changed ESC to BACKSPACE in choose dialog hotkeys (compatibility fixes);
This commit is contained in:
parent
ce60a9d75b
commit
7da62e13ec
2 changed files with 3 additions and 3 deletions
|
@ -500,6 +500,7 @@ public class AbilityPicker extends JXPanel implements MouseWheelListener {
|
|||
AbilityPickerAction action = (AbilityPickerAction) obj;
|
||||
if (action.id == null) {
|
||||
cancel();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -555,8 +556,8 @@ public class AbilityPicker extends JXPanel implements MouseWheelListener {
|
|||
}
|
||||
});
|
||||
|
||||
// cancel key (esc)
|
||||
panel.getInputMap(c).put(KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0), commandsPrefix + "_CHOOSE_CANCEL");
|
||||
// cancel key (esc can be lost by focus on exile window popup)
|
||||
panel.getInputMap(c).put(KeyStroke.getKeyStroke(KeyEvent.VK_BACK_SPACE, 0), commandsPrefix + "_CHOOSE_CANCEL");
|
||||
panel.getActionMap().put(commandsPrefix + "_CHOOSE_CANCEL", new AbstractAction() {
|
||||
@Override
|
||||
public void actionPerformed(ActionEvent actionEvent) {
|
||||
|
|
|
@ -77,7 +77,6 @@ public class CardInfoWindowDialog extends MageDialog {
|
|||
}
|
||||
this.setTitelBarToolTip(name);
|
||||
setGUISize();
|
||||
|
||||
}
|
||||
|
||||
public void cleanUp() {
|
||||
|
|
Loading…
Reference in a new issue