Revert enter to select and submit.
This commit is contained in:
@@ -991,8 +991,6 @@ class DirectoryDropdown {
|
|||||||
else if (e.key === "Enter") {
|
else if (e.key === "Enter") {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
const input = e.target
|
const input = e.target
|
||||||
/*
|
|
||||||
// enter is for search
|
|
||||||
const selection = options[iSelection];
|
const selection = options[iSelection];
|
||||||
if (selection !== undefined && selection !== null) {
|
if (selection !== undefined && selection !== null) {
|
||||||
DirectoryDropdown.selectionToInput(
|
DirectoryDropdown.selectionToInput(
|
||||||
@@ -1007,7 +1005,6 @@ class DirectoryDropdown {
|
|||||||
}
|
}
|
||||||
updateCallback();
|
updateCallback();
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
await submitCallback();
|
await submitCallback();
|
||||||
input.blur();
|
input.blur();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user