From ffd003bda42827d0577c7ae4e1b3cad508f4e101 Mon Sep 17 00:00:00 2001 From: Christian Bastian <80225746+cdb-boop@users.noreply.github.com> Date: Sun, 31 Mar 2024 04:41:02 -0400 Subject: [PATCH] Dropdown enter is for searching, arrows and mouse are for navigating. --- web/model-manager.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/model-manager.js b/web/model-manager.js index ee2f02c..c5149ed 100644 --- a/web/model-manager.js +++ b/web/model-manager.js @@ -991,6 +991,8 @@ class DirectoryDropdown { else if (e.key === "Enter") { e.stopPropagation(); const input = e.target + /* + // enter is for search const selection = options[iSelection]; if (selection !== undefined && selection !== null) { DirectoryDropdown.selectionToInput( @@ -1005,6 +1007,7 @@ class DirectoryDropdown { } updateCallback(); } + */ await submitCallback(); input.blur(); }