Skip to content

Commit e6b1f24

Browse files
refactor(web): require platform when resolving shortcut keys
AI-assisted; verified with the tests and tools listed above.
1 parent 7f84338 commit e6b1f24

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎apps/web/src/keybindings.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import { getKeyboardLayoutMap } from "./keyboardLayout";
2828
export type { ShortcutModifierStateLike } from "@t3tools/shared/keybindings";
2929
export function shortcutKeyFromEvent(
3030
event: Pick<ShortcutEventLike, "key" | "code" | "shiftKey" | "altKey">,
31-
platform = navigator.platform,
31+
platform: string,
3232
) {
3333
return sharedShortcutKeyFromEvent(
3434
event,

0 commit comments

Comments
 (0)