mirror of
https://github.com/zadam/trilium.git
synced 2026-02-20 12:44:25 +01:00
fix(options/shortcuts): filter text box forces lower case
This commit is contained in:
parent
d93cec2bfd
commit
e41b2e8d31
@ -71,7 +71,8 @@ export default function ShortcutSettings() {
|
|||||||
options.saveMany(optionsToSet);
|
options.saveMany(optionsToSet);
|
||||||
}, [ keyboardShortcuts ]);
|
}, [ keyboardShortcuts ]);
|
||||||
|
|
||||||
const filteredKeyboardShortcuts = filter ? keyboardShortcuts.filter((action) => filterKeyboardAction(action, filter)) : keyboardShortcuts;
|
const filterLowerCase = filter?.toLowerCase() ?? "";
|
||||||
|
const filteredKeyboardShortcuts = filter ? keyboardShortcuts.filter((action) => filterKeyboardAction(action, filterLowerCase)) : keyboardShortcuts;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<OptionsSection
|
<OptionsSection
|
||||||
@ -86,7 +87,7 @@ export default function ShortcutSettings() {
|
|||||||
<header>
|
<header>
|
||||||
<FormTextBox
|
<FormTextBox
|
||||||
placeholder={t("shortcuts.type_text_to_filter")}
|
placeholder={t("shortcuts.type_text_to_filter")}
|
||||||
currentValue={filter} onChange={(value) => setFilter(value.toLowerCase())}
|
currentValue={filter} onChange={(value) => setFilter(value)}
|
||||||
/>
|
/>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user