client/notes: don't steal arrow keys in textarea

This commit is contained in:
rr- 2016-08-28 23:28:16 +02:00
parent dfc65e5a7c
commit 4bfdd4c5cb

View file

@ -609,6 +609,10 @@ class PostNotesOverlayControl extends events.EventTarget {
}
_evtCanvasKeyDown(e) {
const illegalNodeNames = ['textarea', 'input', 'select'];
if (illegalNodeNames.includes(e.target.nodeName.toLowerCase())) {
return;
}
this._state.evtCanvasKeyDown(e);
}