Skip to content
Snippets Groups Projects
Commit bab03ee6 authored by Robert Goldmann's avatar Robert Goldmann
Browse files

Fixed #643 - disable month select hotkeys while search is focused

parent ddd65c3d
No related branches found
No related tags found
No related merge requests found
......@@ -84,17 +84,26 @@ function selectMonth(selectedMonth)
function enableGlobalDatePickerHotKeys()
{
Mousetrap.bind('left', function()
{
if(areHotKeysEnabled())
{
document.getElementById('global-datepicker-previous-month').click();
}
});
Mousetrap.bind('right', function()
{
if(areHotKeysEnabled())
{
document.getElementById('global-datepicker-next-month').click();
}
});
Mousetrap.bind('0', function()
{
if(areHotKeysEnabled())
{
document.getElementById('global-datepicker-today').click();
}
});
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment