(
key: Key | (string & {}),
)
| 240 | * @returns True if the string is a recognized modifier |
| 241 | */ |
| 242 | export function isModifierKey( |
| 243 | key: Key | (string & {}), |
| 244 | ): key is keyof typeof MODIFIER_ALIASES { |
| 245 | return key in MODIFIER_ALIASES || key.toLowerCase() in MODIFIER_ALIASES |
| 246 | } |
| 247 | |
| 248 | /** |
| 249 | * Parses a KeyboardEvent into a ParsedHotkey object. |
no outgoing calls
no test coverage detected
searching dependent graphs…