mirror of
https://github.com/correl/mage.git
synced 2024-11-28 19:19:55 +00:00
Additional to prev commit
This commit is contained in:
parent
2249bba1f1
commit
217517feee
1 changed files with 6 additions and 4 deletions
|
@ -1650,8 +1650,14 @@ public final class GamePanel extends javax.swing.JPanel {
|
|||
|
||||
bigCard.setBorder(new LineBorder(Color.black, 1, true));
|
||||
|
||||
// HOTKEYS
|
||||
|
||||
int c = JComponent.WHEN_IN_FOCUSED_WINDOW;
|
||||
|
||||
// special hotkeys for custom rendered dialogs without focus
|
||||
// call it before any user defined hotkeys
|
||||
this.abilityPicker.injectHotkeys(this, "ABILITY_PICKER");
|
||||
|
||||
btnToggleMacro.setContentAreaFilled(false);
|
||||
btnToggleMacro.setBorder(new EmptyBorder(BORDER_SIZE, BORDER_SIZE, BORDER_SIZE, BORDER_SIZE));
|
||||
btnToggleMacro.setIcon(new ImageIcon(ImageManagerImpl.instance.getToggleRecordMacroButtonImage()));
|
||||
|
@ -1822,10 +1828,6 @@ public final class GamePanel extends javax.swing.JPanel {
|
|||
|
||||
// HOTKEYS
|
||||
|
||||
// special hotkeys for custom rendered dialogs without focus
|
||||
// call it before any user defined hotkeys
|
||||
this.abilityPicker.injectHotkeys(this, "ABILITY_PICKER");
|
||||
|
||||
KeyStroke ks2 = getCachedKeystroke(KEY_CONTROL_CONFIRM);
|
||||
this.getInputMap(c).put(ks2, "F2_PRESS");
|
||||
this.getActionMap().put("F2_PRESS", new AbstractAction() {
|
||||
|
|
Loading…
Reference in a new issue