Skip to content

Commit

Permalink
Adding Hotkey.allowOverlap flag (to allow "conflicts"/overlap of hotk…
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanolson committed Mar 28, 2024
1 parent 2dde92b commit 60c819e
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 @@ -78,6 +78,12 @@ class WilderScreenView extends ScreenView {
fireOnHoldCustomInterval: 300
} ) );

globalHotkeyRegistry.add( new Hotkey( {
key: 'd',
fire: () => console.log( 'fire: (second d)' ),
allowOverlap: true
} ) );

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

0 comments on commit 60c819e

Please sign in to comment.