From 2ab6eb9eed73bee67ccc0c03d8588fd77358bbf5 Mon Sep 17 00:00:00 2001 From: 0neGal Date: Fri, 20 Dec 2024 22:26:38 +0100 Subject: fixed sort selector with navigation functions --- src/app/js/navigate.js | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'src/app/js') diff --git a/src/app/js/navigate.js b/src/app/js/navigate.js index b5b98a6..9b99df6 100644 --- a/src/app/js/navigate.js +++ b/src/app/js/navigate.js @@ -523,19 +523,24 @@ navigate.select = () => { // focused, which isn't great // // so we make the main process send a fake Enter key press - if (active.closest("select")) { - active = active.closest("select"); + if (active.closest("select") || active.querySelector("select")) { + // make sure this element doesn't get unselected + navigate.dont_unselect = active; + + active = active.closest("select") || active.querySelector("select"); // make sure `