Die Tasten eines Bereichs, erfragt statt aufgeschrieben.
(scope: ShortcutScope, meaning: (key: string) => string)
| 67 | |
| 68 | /** Die Tasten eines Bereichs, erfragt statt aufgeschrieben. */ |
| 69 | function probed(scope: ShortcutScope, meaning: (key: string) => string): AtlasShortcut[] { |
| 70 | return PROBED_KEYS.filter((key) => meaning(key) !== 'none').map((key) => ({ scope, key })); |
| 71 | } |
| 72 | |
| 73 | /** Ob diese Taste Alt/Option braucht, um zu gelten. */ |
| 74 | export function needsAlt(shortcut: AtlasShortcut): boolean { |