Shift-Enter in the page navigator now takes the input literally

This commit is contained in:
Zef Hemel
2023-08-01 21:37:52 +02:00
parent 701a567c95
commit 2c8e1f1809
2 changed files with 16 additions and 7 deletions
+4 -2
View File
@@ -100,8 +100,10 @@ export function FilterList({
darkMode={darkMode}
completer={completer}
placeholderText={placeholder}
onEnter={() => {
onSelect(matchingOptions[selectedOption]);
onEnter={(_newText, shiftDown) => {
onSelect(
shiftDown ? { name: text } : matchingOptions[selectedOption],
);
return true;
}}
onEscape={() => {