Skip to content

Commit fb78601

Browse files
committed
Fix normalizing of s- prefix to key names
1 parent ba82593 commit fb78601

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/input/keymap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function normalizeKeyName(name) {
5757
if (/^(cmd|meta|m)$/i.test(mod)) cmd = true
5858
else if (/^a(lt)?$/i.test(mod)) alt = true
5959
else if (/^(c|ctrl|control)$/i.test(mod)) ctrl = true
60-
else if (/^s(hift)$/i.test(mod)) shift = true
60+
else if (/^s(hift)?$/i.test(mod)) shift = true
6161
else throw new Error("Unrecognized modifier name: " + mod)
6262
}
6363
if (alt) name = "Alt-" + name

0 commit comments

Comments
 (0)