Pressing enter while only one tag is filtered will apply it.

This commit is contained in:
Roland 2026-04-04 18:08:33 -06:00
parent 169d2d37f0
commit 3a21f7b23f
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680

View file

@ -584,6 +584,12 @@ export function AddTagsButton({
placeholder='Filter tags...'
value={filterText}
onChange={(e) => setFilterText(e.target.value)}
onKeyDown={(e) => {
if (e.key === 'Enter' && filteredUnusedTags.length === 1) {
e.preventDefault();
addTag(filteredUnusedTags[0]);
}
}}
icon='search'
fluid
style={{marginBottom: '0.5em'}}