Skip to content

Commit

Permalink
add an ignoredModifierKeys option to Hotkey, see phetsims/scenery#1621
Browse files Browse the repository at this point in the history
  • Loading branch information
jessegreenberg committed Mar 28, 2024
1 parent 597bf23 commit 2dde92b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/wilder/view/WilderScreenView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ class WilderScreenView extends ScreenView {
globalHotkeyRegistry.add( new Hotkey( {
key: 'r',
fire: () => console.log( 'fire: r' ),
ignoredModifierKeys: [ 'shift' ],
fireOnHold: true,
fireOnHoldTiming: 'custom',
fireOnHoldCustomInterval: 300
Expand Down

0 comments on commit 2dde92b

Please sign in to comment.