Skip to content

Commit

Permalink
bug fix for single-key hotkeys, phetsims/scenery#1331
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Dec 17, 2021
1 parent b7ff47b commit d267033
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/common/view/GORulerNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ class GORulerNode extends Node {
this.addInputListener( keyboardDragListener );

keyboardDragListener.addHotkeys( [ {
keys: [ KeyboardUtils.KEY_H, KeyboardUtils.KEY_R ], //TODO https://github.com/phetsims/scenery/issues/1331 replace with KEY_ESCAPE
keys: [ KeyboardUtils.KEY_ESCAPE ],
callback: () => {
ruler.visibleProperty.value = false;
this.iconNode.focus();
Expand Down

0 comments on commit d267033

Please sign in to comment.