From 52e187e2511848b600ca0e732b7528105baec401 Mon Sep 17 00:00:00 2001 From: Peter Stuifzand Date: Sat, 31 Oct 2020 20:56:56 +0100 Subject: [PATCH] Don't move inside cell when ctrl is pressed --- list-editor/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/list-editor/index.js b/list-editor/index.js index e993863..1e8cc42 100644 --- a/list-editor/index.js +++ b/list-editor/index.js @@ -459,7 +459,7 @@ function editor(root, inputData, options) { let cursorInfo = null 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 }