From 7d6269f372443582149ba5e9e9ff32227ccf7283 Mon Sep 17 00:00:00 2001 From: zepumph Date: Tue, 16 Feb 2021 19:22:10 -0900 Subject: [PATCH] factor out usages of key.toLowerCase to use KeyboardUtils methods, https://github.com/phetsims/scenery/issues/1053 --- js/view/ElectronShellView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/view/ElectronShellView.js b/js/view/ElectronShellView.js index 5d8bfac..34d274d 100644 --- a/js/view/ElectronShellView.js +++ b/js/view/ElectronShellView.js @@ -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;