forked from External/mage
Focus on button for space and enter hot keys
This commit is contained in:
parent
25bdce4b67
commit
6ad352709a
2 changed files with 6 additions and 0 deletions
|
|
@ -169,6 +169,7 @@ public class FeedbackPanel extends javax.swing.JPanel {
|
||||||
}
|
}
|
||||||
if (requestFocusAllowed) {
|
if (requestFocusAllowed) {
|
||||||
this.btnRight.requestFocus();
|
this.btnRight.requestFocus();
|
||||||
|
this.helper.requestFocus();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -103,6 +103,7 @@ public class HelperPanel extends JPanel {
|
||||||
|
|
||||||
btnEndTurn = new JButton("End Turn");
|
btnEndTurn = new JButton("End Turn");
|
||||||
btnEndTurn.setToolTipText("End The Turn");
|
btnEndTurn.setToolTipText("End The Turn");
|
||||||
|
btnEndTurn.setFocusable(false);
|
||||||
container.add(btnEndTurn);
|
container.add(btnEndTurn);
|
||||||
|
|
||||||
btnLeft.addActionListener(new java.awt.event.ActionListener() {
|
btnLeft.addActionListener(new java.awt.event.ActionListener() {
|
||||||
|
|
@ -184,4 +185,8 @@ public class HelperPanel extends JPanel {
|
||||||
btnEndTurn.setVisible(false);
|
btnEndTurn.setVisible(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void requestFocus() {
|
||||||
|
this.btnRight.requestFocus();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue