From 4bfdd4c5cbdce75e3b647ef4b9ad9ad8df0a7be2 Mon Sep 17 00:00:00 2001 From: rr- Date: Sun, 28 Aug 2016 23:28:16 +0200 Subject: [PATCH] client/notes: don't steal arrow keys in textarea --- client/js/controls/post_notes_overlay_control.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/js/controls/post_notes_overlay_control.js b/client/js/controls/post_notes_overlay_control.js index eb52f6b..26381ff 100644 --- a/client/js/controls/post_notes_overlay_control.js +++ b/client/js/controls/post_notes_overlay_control.js @@ -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); }