forked from External/mage
Button focus adjustments for yes/no dialogs (#9828)
* UserRequestDialog buttons can't be pressed with spacebar anymore * Pressing spacebar when drafting no longer brings up the quit menu * Revert DraftPanel and TournamentPanel quit dialog buttons to their original positions Co-authored-by: sprangg <a@b.c>
This commit is contained in:
parent
7026811cd3
commit
d604f04b79
3 changed files with 8 additions and 4 deletions
|
|
@ -490,8 +490,8 @@ public class TournamentPanel extends javax.swing.JPanel {
|
|||
|
||||
private void btnQuitTournamentActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnQuitTournamentActionPerformed
|
||||
UserRequestMessage message = new UserRequestMessage("Confirm quit tournament", "Are you sure you want to quit the tournament?");
|
||||
message.setButton1("Yes", PlayerAction.CLIENT_QUIT_TOURNAMENT);
|
||||
message.setButton2("No", null);
|
||||
message.setButton1("No", null);
|
||||
message.setButton2("Yes", PlayerAction.CLIENT_QUIT_TOURNAMENT);
|
||||
message.setTournamentId(tournamentId);
|
||||
MageFrame.getInstance().showUserRequestDialog(message);
|
||||
}//GEN-LAST:event_btnQuitTournamentActionPerformed
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue