Dropdown enter is for searching, arrows and mouse are for navigating.

This commit is contained in:
Christian Bastian
2024-03-31 04:41:02 -04:00
parent 683012a2e2
commit ffd003bda4

View File

@@ -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();
}