From 4807751f385aa091cfcbe3a42a94b0c3d77d2c7a Mon Sep 17 00:00:00 2001 From: Philipp Kewisch Date: Mon, 15 Jul 2024 20:20:10 +0200 Subject: [PATCH] fix: Don't move cursor when selecting actions with arrow keys --- src/popup/popup.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/popup/popup.js b/src/popup/popup.js index fb23e48..836070e 100644 --- a/src/popup/popup.js +++ b/src/popup/popup.js @@ -146,6 +146,7 @@ function keydown(event) { if (event.key == "Escape") { window.close(); } else if (event.key == "ArrowLeft" || event.key == "ArrowRight") { + event.preventDefault(); let params = new URLSearchParams(window.location.search); let sequence = (params.get("allowed") || "move,copy").split(","); let direction = event.key == "ArrowLeft" ? -1 : 1;