Don't capture keydown if CTRL or ALT is held

Prevents the script from blocking weight editing and prompt submit shortcuts
Fixes #19
This commit is contained in:
Dominik Reh
2022-10-17 13:56:15 +02:00
parent 1d12fdcc6a
commit 9fc9f1ab7d

View File

@@ -458,6 +458,8 @@ function navigateInList(textArea, event) {
if (!validKeys.includes(event.key)) return;
if (!isVisible(textArea)) return
// Return if ctrl key is pressed to not interfere with weight editing shortcut
if (event.ctrlKey || event.altKey) return;
switch (event.key) {
case "ArrowUp":