Skip to content

Commit f7e6f65

Browse files
committed
Fix TypeScript error with optional withModifier property
Change-Id: If0ba43b175821808ac897cd08e0a82f3af04c91e Signed-off-by: Thomas Kosiewski <tk@coder.com>
1 parent 76c3f38 commit f7e6f65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/browser/lib/shortcuts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ export function matchesKey(
253253
const shortcut = SHORTCUTS[shortcutId];
254254

255255
// Check modifier requirement
256-
if (shortcut.withModifier && !(event.metaKey || event.ctrlKey)) {
256+
if ("withModifier" in shortcut && shortcut.withModifier && !(event.metaKey || event.ctrlKey)) {
257257
return false;
258258
}
259259

0 commit comments

Comments
 (0)