fix(svelte): allow null for keys

This commit is contained in:
moklick
2023-12-13 11:54:38 +01:00
parent 94e822caa8
commit e7b29385d0

View File

@@ -23,7 +23,7 @@
} = useStore();
function isKeyObject(key?: KeyDefinition | null): key is KeyDefinitionObject {
return typeof key === 'object';
return key !== null && typeof key === 'object';
}
function getModifier(key?: KeyDefinition | null): ShortcutModifierDefinition {