mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-24 17:06:18 -05:00
Pressing enter while only one tag is filtered will apply it.
This commit is contained in:
parent
169d2d37f0
commit
3a21f7b23f
1 changed files with 6 additions and 0 deletions
|
|
@ -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'}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue