Allow other commands in textarea

This commit is contained in:
Peter Stuifzand 2020-10-31 14:55:13 +01:00
parent fa714c93f4
commit 1bb21144f0

View File

@ -424,8 +424,10 @@ function editor(root, inputData, options) {
let dir = 0;
if (event.key === 'ArrowUp') dir = -1
if (event.key === 'ArrowDown') dir = 1
let cursorInfo = textareaCursorInfo(target, dir);
if (!cursorInfo.leaving) {
let cursorInfo = null
if (target.nodeName === 'TEXTAREA') cursorInfo = textareaCursorInfo(target, dir);
if (cursorInfo !== null && !cursorInfo.leaving && dir !== 0) {
return true
}