We didn't notice that keys you type into input boxes (currently, just
zoom) get fed to the play interpreter too, because you would only type
digits there which are ignored.
But we are about to pay attention to digits.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
// my tsc says this isComposing thing doesn't exist. wat.
if ((e as any).isComposing /* || e.keyCode === 229 */) return;
if (e.ctrlKey || e.altKey || e.metaKey) return;
+ if (e.target) {
+ // someone else is dealing with it ?
+ let tag = (e.target as HTMLElement).tagName;
+ if (tag == 'INPUT') return;
+ }
let pane = pane_keys[e.key];
if (pane) {