From 1867d23976fea53806b2bdc3c125b88e418da36c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Z=CC=8Can=20Anderle?= Date: Thu, 28 Nov 2024 14:14:28 +0100 Subject: [PATCH] When using keyboard to select a result, emulate a click to retain the rest of the logic --- src/search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/search.js b/src/search.js index a4fd566..189e9a1 100644 --- a/src/search.js +++ b/src/search.js @@ -530,7 +530,7 @@ export class SearchElement extends LitElement { const selected = this.renderRoot.querySelector("a.hit.active"); // if an item is selected, then redirect to its link if (selected !== null) { - window.location.href = selected.href; + selected.click(); } }