Skip to content

Commit

Permalink
factor out usages of key.toLowerCase to use KeyboardUtils methods, ph…
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Feb 17, 2021
1 parent 71e78a0 commit 7d6269f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/view/ElectronShellView.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ class ElectronShellView extends Node {
let currentIndex = 0;
const keyListener = {
keydown: event => {
const key = event.domEvent.key.toLowerCase();
const key = KeyboardUtils.getKeyDef( event.domEvent );

if ( key === KeyboardUtils.KEY_DOWN_ARROW || key === KeyboardUtils.KEY_RIGHT_ARROW ) {
currentIndex = ( currentIndex + 1 ) % optionNodes.length;
Expand Down

0 comments on commit 7d6269f

Please sign in to comment.