Skip to content

Commit

Permalink
Hotkey management prototype, renamed KeyboardDragListener hotkeys set…
Browse files Browse the repository at this point in the history
…ter => setHotkeys(), see phetsims/scenery#1621
  • Loading branch information
jonathanolson committed Mar 28, 2024
1 parent b7887d5 commit c2148bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/balloons-and-static-electricity/view/BalloonNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ class BalloonNode extends Node {
} );

// jump to the wall on 'J + W'
this.keyboardDragListener.hotkeys = [
this.keyboardDragListener.setHotkeys( [
{
keys: [ KeyboardUtils.KEY_J, KeyboardUtils.KEY_W ],
callback: () => {
Expand All @@ -431,7 +431,7 @@ class BalloonNode extends Node {
this.jumpBalloon( new Vector2( X_POSITIONS.AT_CENTER_PLAY_AREA, model.getCenterY() ) );
}
}
];
] );

// update the drag bounds when wall visibility changes
globalModel.wall.isVisibleProperty.link( () => {
Expand Down

0 comments on commit c2148bf

Please sign in to comment.