From 3a21f7b23f348de5b6ede9128539b19013354e2b Mon Sep 17 00:00:00 2001 From: Roland Date: Sat, 4 Apr 2026 18:08:33 -0600 Subject: [PATCH] Pressing enter while only one tag is filtered will apply it. --- app/src/Tags.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/src/Tags.js b/app/src/Tags.js index 98d61cae..ffa18498 100644 --- a/app/src/Tags.js +++ b/app/src/Tags.js @@ -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'}}