* Converts keystroke like to a single control character like \t
(key: string)
| 20 | * Converts keystroke like <tab> to a single control character like \t |
| 21 | */ |
| 22 | public static ToControlCharacter(key: string) { |
| 23 | if (key === '<tab>') { |
| 24 | return '\t'; |
| 25 | } |
| 26 | |
| 27 | return key; |
| 28 | } |
| 29 | |
| 30 | public static IsControlKey(key: string): boolean { |
| 31 | key = key.toLocaleUpperCase(); |
no outgoing calls
no test coverage detected