(event: WaveKeyboardEvent)
| 175 | ]); |
| 176 | |
| 177 | function isInputEvent(event: WaveKeyboardEvent): boolean { |
| 178 | if (isCharacterKeyEvent(event)) { |
| 179 | return true; |
| 180 | } |
| 181 | for (let key of inputKeyMap.keys()) { |
| 182 | if (checkKeyPressed(event, key)) { |
| 183 | return true; |
| 184 | } |
| 185 | } |
| 186 | } |
| 187 | |
| 188 | function checkKeyPressed(event: WaveKeyboardEvent, keyDescription: string): boolean { |
| 189 | let keyPress = parseKeyDescription(keyDescription); |
nothing calls this directly
no test coverage detected