From e191b31d6f6dfc465bd61f3d3060f749edb323dd Mon Sep 17 00:00:00 2001 From: Alyssa X Date: Sat, 15 Jan 2022 20:21:10 +0000 Subject: [PATCH] Enter + shortcut fix --- src/content.js | 14 ++++++-------- src/manifest.json | 2 +- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/src/content.js b/src/content.js index 1c0df67..e0200da 100644 --- a/src/content.js +++ b/src/content.js @@ -271,6 +271,12 @@ $(document).ready(function(){ next.addClass("omni-item-active"); next[0].scrollIntoView({block:"nearest", inline:"nearest"}); } + } else if (down[27] && isOpen) { + // Esc key + closeOmni(); + } else if (down[13] && isOpen) { + // Enter key + handleAction(e); } }).keyup(function(e) { if (down[18] && down[16] && down[80]) { @@ -297,14 +303,6 @@ $(document).ready(function(){ window.open("mailto:"); } - if (down[27] && isOpen) { - // Esc key - closeOmni(); - } else if (down[13] && isOpen) { - // Enter key - handleAction(); - } - down = []; }); diff --git a/src/manifest.json b/src/manifest.json index 5c6a8ff..817c7f0 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -2,7 +2,7 @@ "name": "Omni", "description": "Supercharge Chrome with commands, shortcuts, and more", "offline_enabled": true, - "version": "1.3.3", + "version": "1.3.4", "manifest_version": 3, "action": { "icons": {