(e)
| 87 | |
| 88 | // AltGr emits a printable char while flagging Ctrl+Alt; real Ctrl+Alt shortcuts produce a letter/digit `key`. |
| 89 | const isAltGrChar = (e) => e.ctrlKey && e.altKey && e.key.length === 1 && !/^[A-Za-z0-9]$/.test(e.key); |
| 90 | |
| 91 | // mutable state |
| 92 |