Skip to content

Commit

Permalink
Fixing hotkeyManager when the main key is included in general modifie…
Browse files Browse the repository at this point in the history
…rKeys, see phetsims/scenery#1621
  • Loading branch information
jonathanolson committed Mar 28, 2024
1 parent 60c819e commit 904cd2a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions js/wilder/view/WilderScreenView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,12 @@ class WilderScreenView extends ScreenView {
allowOverlap: true
} ) );

globalHotkeyRegistry.add( new Hotkey( {
key: 'shift',
fire: () => console.log( 'fire: shift' ),
enabledProperty: extraEnabledProperty
} ) );

resetAllButton.addInputListener( {
hotkeys: [
new Hotkey( {
Expand Down

0 comments on commit 904cd2a

Please sign in to comment.