mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-09 03:37:45 +03:00
feat: add ability to blur search bar with Escape key
This commit is contained in:
parent
3adc8662dc
commit
bf6ce2b465
@ -71,6 +71,11 @@ export function Header({ onSearch, onClear, search }: HeaderProps) {
|
||||
if (!isFocused && ctrlKey && key === "k") {
|
||||
focusInput();
|
||||
}
|
||||
|
||||
if (isFocused && key === "Escape" && inputRef.current) {
|
||||
inputRef.current.blur();
|
||||
handleBlur();
|
||||
}
|
||||
};
|
||||
|
||||
return () => {
|
||||
|
Loading…
Reference in New Issue
Block a user