MCPcopy
hub / github.com/lektor/lektor / KeyboardShortcut

Interface KeyboardShortcut

frontend/js/utils.ts:58–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58export interface KeyboardShortcut {
59 key: string;
60 mac?: string;
61 preventDefault?: boolean;
62}
63
64export function getKey(shortcut: KeyboardShortcut): string {
65 return getPlatform() === "mac" && shortcut.mac ? shortcut.mac : shortcut.key;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected