Skip to content

Commit

Permalink
fix: Don't move cursor when selecting actions with arrow keys
Browse files Browse the repository at this point in the history
  • Loading branch information
kewisch committed Jul 15, 2024
1 parent dbb98cb commit 4807751
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/popup/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4807751

Please sign in to comment.