Don't move inside cell when ctrl is pressed

This commit is contained in:
Peter Stuifzand 2020-10-31 20:56:56 +01:00
parent e147c3acd6
commit 52e187e251

View File

@ -459,7 +459,7 @@ function editor(root, inputData, options) {
let cursorInfo = null let cursorInfo = null
if (target.nodeName === 'TEXTAREA') cursorInfo = textareaCursorInfo(target, dir); if (target.nodeName === 'TEXTAREA') cursorInfo = textareaCursorInfo(target, dir);
if (cursorInfo !== null && !cursorInfo.leaving && dir !== 0) { if (cursorInfo !== null && !cursorInfo.leaving && dir !== 0 && !event.ctrlKey) {
return true return true
} }