Skip to content
Snippets Groups Projects
Commit de7ad3d0 authored by Tobias Ullerich's avatar Tobias Ullerich
Browse files

Fixed hotkey on search focus

parent 10c52164
No related branches found
No related tags found
No related merge requests found
Pipeline #2069 passed
......@@ -30,11 +30,12 @@ Mousetrap.bind('f', function()
}
});
Mousetrap.bind('s', function()
Mousetrap.bind('s', function(e)
{
if(!isSearchFocused())
{
document.getElementById('search').focus();
e.preventDefault();
}
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment