mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
client/notes: don't steal arrow keys in textarea
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user