Allow other commands in textarea
This commit is contained in:
parent
fa714c93f4
commit
1bb21144f0
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user