Skip to content

Commit

Permalink
Keys for char should always return an array
Browse files Browse the repository at this point in the history
  • Loading branch information
jessepav committed Jun 1, 2024
1 parent fdebede commit cec2f5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/display-keyboard.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ const US_QWERTY_DEF = {
// produced with this keyboard.
keysForChar(c) {
if (US_QWERTY_PLAIN_CHARS.has(c))
return c;
return [c];
else if (US_QWERTY_RIGHT_SHIFT_CHARS.has(c))
return ['Shift_R', US_QWERTY_SHIFT_CHARS_CNAME_MAP.get(c)];
else if (US_QWERTY_LEFT_SHIFT_CHARS.has(c))
Expand Down

0 comments on commit cec2f5c

Please sign in to comment.