Make left/right arrow key navigation optional

Fixes #31
This commit is contained in:
Dominik Reh
2022-10-23 14:50:04 +02:00
parent 3759ec055a
commit 4af8d5285d
2 changed files with 4 additions and 1 deletions

View File

@@ -465,7 +465,9 @@ function navigateInList(textArea, event) {
// Return if the function is deactivated in the UI
if (!acActive) return;
validKeys = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight", "Enter", "Tab", "Escape"];
validKeys = ["ArrowUp", "ArrowDown", "Enter", "Tab", "Escape"];
if (acConfig.useLeftRightArrowKeys)
validKeys.push("ArrowLeft", "ArrowRight");
if (!validKeys.includes(event.key)) return;
if (!isVisible(textArea)) return

View File

@@ -8,6 +8,7 @@
"maxResults": 5,
"resultStepLength": 500,
"showAllResults": false,
"useLeftRightArrowKeys": false,
"replaceUnderscores": true,
"escapeParentheses": true,
"useWildcards": true,