Hotkeys: Navigate to search page if input is not available

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak 2024-06-23 19:18:03 +02:00
parent 4541e497ac
commit b03256b53b

View file

@ -70,6 +70,8 @@ const GlobalHotkeys: React.FC<IGlobalHotkeys> = ({ children, node }) => {
if (element) {
element.focus();
} else {
history.push('/search');
}
};