Skip to content

Commit

Permalink
handle focus for Wave Game info dialog, #194
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Sep 28, 2021
1 parent 7d1e5bc commit 924a548
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/waveGame/view/WaveGameLevelSelectionNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ class WaveGameLevelSelectionNode extends Node {
maxHeight: 40, // determined empirically
listener: () => {
infoDialog.show();
if ( infoButton.isPDOMClicking() ) {
infoDialog.focusCloseButton();
}
},
tandem: options.tandem.createTandem( 'infoButton' )
} );
Expand Down

0 comments on commit 924a548

Please sign in to comment.