From 842e668f1c9ba90a526158395997923a8c0daaa5 Mon Sep 17 00:00:00 2001 From: Alyssa X Date: Wed, 12 Jan 2022 18:41:49 +0100 Subject: [PATCH] Focus first item while searching --- src/content.js | 2 ++ src/manifest.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/content.js b/src/content.js index 5b76308..1de7a1a 100644 --- a/src/content.js +++ b/src/content.js @@ -143,6 +143,8 @@ $(document).ready(function(){ }); } $(".omni-extension #omni-results").html($("#omni-extension #omni-list .omni-item:visible").length+" results"); + $(".omni-item-active").removeClass("omni-item-active"); + $(".omni-extension #omni-list .omni-item:visible").first().addClass("omni-item-active"); } // Handle actions from the omni diff --git a/src/manifest.json b/src/manifest.json index dda5cd1..c2b17cd 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.0.9", + "version": "1.1.0", "manifest_version": 3, "action": { "icons": {