From 92e9911ddc281cc9cc4b97df8bff0f432e0e7f54 Mon Sep 17 00:00:00 2001 From: Alyssa X Date: Fri, 14 Jan 2022 16:03:15 +0000 Subject: [PATCH] Arrow keys fixed --- src/content.css | 7 +++++-- src/content.js | 3 +++ src/manifest.json | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/content.css b/src/content.css index a99f87c..449fc7e 100644 --- a/src/content.css +++ b/src/content.css @@ -53,6 +53,9 @@ font-weight: 700; src: url('chrome-extension://__MSG_@@extension_id__/assets/Inter-Bold.ttf'); } +.omni-extension * { + display: block; +} .omni-extension .omni-item-details * { line-height: normal; } @@ -133,7 +136,7 @@ margin-left: 3px; } .omni-extension .omni-shortcut { - display: inline-block; + display: inline-block!important; font-size: 13px; border-radius: 5px; background-color: var(--shortcut); @@ -238,7 +241,7 @@ font-size: 18px; } .omni-extension .omni-item-details { - display: inline-block; + display: inline-block!important; margin-left: 10px; vertical-align: middle; margin-top: 10px; diff --git a/src/content.js b/src/content.js index f1086bd..c982dd5 100644 --- a/src/content.js +++ b/src/content.js @@ -117,6 +117,9 @@ $(document).ready(function(){ // Search for an action in the omni function search(e) { + if (e.keyCode == 37 || e.keyCode == 38 || e.keyCode == 39 || e.keyCode == 40 || e.keyCode == 13 || e.keyCode == 37) { + return; + } var value = $(this).val().toLowerCase(); checkShortHand(e, value); value = $(this).val().toLowerCase(); diff --git a/src/manifest.json b/src/manifest.json index 5144f3a..6764171 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.2.5", + "version": "1.2.7", "manifest_version": 3, "action": { "icons": {