(e: Event)
| 19 | } |
| 20 | |
| 21 | export function isCtrlKeyPressed(e: Event): boolean { |
| 22 | if (isMac()) { |
| 23 | return e.metaKey; |
| 24 | } |
| 25 | |
| 26 | return e.ctrlKey; |
| 27 | } |
| 28 | |
| 29 | // HTML input types that do not cause the software keyboard to appear. |
| 30 | const nonTextInputTypes = new Set([ |