|
@@ -131,7 +131,8 @@ function generateKeybindingString(ev: KeyboardEvent): ShortcutKey | null {
|
|
|
}
|
|
|
|
|
|
function getPressedKey(ev: KeyboardEvent): Key | null {
|
|
|
- const val = ev.code.toLowerCase()
|
|
|
+ // Sometimes the property code is not available on the KeyboardEvent object
|
|
|
+ const val = (ev.code ?? "").toLowerCase()
|
|
|
|
|
|
// Check arrow keys
|
|
|
if (val === "arrowup") return "up"
|