diff --git a/js/ui/keyboard.js b/js/ui/keyboard.js index a37580b32..b1fafb953 100644 --- a/js/ui/keyboard.js +++ b/js/ui/keyboard.js @@ -860,7 +860,7 @@ var Keyboard = class Keyboard { } _setCurrentLevelLatched(layout, latched) { - for (let i = 0; layout.shiftKeys[i]; i++) { + for (let i = 0; i < layout.shiftKeys.length; i++) { let key = layout.shiftKeys[i]; key.setLatched(latched); }