From fc83365f1f1163fa990d5377f9b20512594631d7 Mon Sep 17 00:00:00 2001 From: Kuuuube <61125188+Kuuuube@users.noreply.github.com> Date: Sun, 12 May 2024 21:54:45 -0400 Subject: Restore shift click behavior for search button opening as a popup (#920) --- ext/js/pages/action-popup-main.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'ext/js/pages') diff --git a/ext/js/pages/action-popup-main.js b/ext/js/pages/action-popup-main.js index 4125b2d1..9689e1af 100644 --- a/ext/js/pages/action-popup-main.js +++ b/ext/js/pages/action-popup-main.js @@ -114,7 +114,15 @@ class DisplayController { const result = customHandler(e); if (typeof result !== 'undefined') { return; } } - void this._api.commandExec(command, {mode: e.ctrlKey ? 'newTab' : 'existingOrNewTab'}); + + let mode = 'existingOrNewTab'; + if (e.ctrlKey) { + mode = 'newTab'; + } else if (e.shiftKey) { + mode = 'popup'; + } + + void this._api.commandExec(command, {mode: mode}); e.preventDefault(); }; /** -- cgit v1.2.3