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
|
|
@ -103,6 +103,7 @@ public class HelperPanel extends JPanel {
|
|||
|
||||
btnEndTurn = new JButton("End Turn");
|
||||
btnEndTurn.setToolTipText("End The Turn");
|
||||
btnEndTurn.setFocusable(false);
|
||||
container.add(btnEndTurn);
|
||||
|
||||
btnLeft.addActionListener(new java.awt.event.ActionListener() {
|
||||
|
|
@ -184,4 +185,8 @@ public class HelperPanel extends JPanel {
|
|||
btnEndTurn.setVisible(false);
|
||||
}
|
||||
}
|
||||
|
||||
public void requestFocus() {
|
||||
this.btnRight.requestFocus();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue