Skip to content

Commit

Permalink
use KeyboardUtils.SHIFT_KEYS when possible, phetsims/scenery#1053
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Jul 19, 2021
1 parent 90def43 commit 03d1e49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/accessibility/AccessibleValueHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ const AccessibleValueHandler = {
}

// reset shift key flag when we release it
if ( key === KeyboardUtils.KEY_SHIFT_LEFT || key === KeyboardUtils.KEY_SHIFT_RIGHT ) {
if ( KeyboardUtils.SHIFT_KEYS.includes( key ) ) {
this._shiftKey = false;
}

Expand Down

0 comments on commit 03d1e49

Please sign in to comment.