mirror of https://github.com/Fabio286/antares.git
fix: unable to delete by select all in left bar search, closes #368
This commit is contained in:
parent
ed3d35f131
commit
7725fafe85
|
@ -235,17 +235,7 @@ const refresh = async () => {
|
|||
}
|
||||
};
|
||||
|
||||
const explorebarSearch = (e: KeyboardEvent) => {
|
||||
if (e.code === 'Backspace') {
|
||||
e.preventDefault();
|
||||
if (searchTerm.value.length)
|
||||
searchTerm.value = searchTerm.value.slice(0, -1);
|
||||
else
|
||||
return;
|
||||
}
|
||||
else if (e.key.length > 1)// Prevent non-alphanumerics
|
||||
return;
|
||||
|
||||
const explorebarSearch = () => {
|
||||
searchInput.value.focus();
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue