| 56 | } |
| 57 | |
| 58 | export interface KeyboardShortcut { |
| 59 | key: string; |
| 60 | mac?: string; |
| 61 | preventDefault?: boolean; |
| 62 | } |
| 63 | |
| 64 | export function getKey(shortcut: KeyboardShortcut): string { |
| 65 | return getPlatform() === "mac" && shortcut.mac ? shortcut.mac : shortcut.key; |
nothing calls this directly
no outgoing calls
no test coverage detected