* fix: #3406 * chore: remove console log * fix: an unknown keyboard event issue --------- Co-authored-by: Liyas Thomas <liyascthomas@gmail.com> Co-authored-by: Anwarul Islam <anwaarulislaam@gmail.com>
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user