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
Branches
Tags
No related merge requests found
...@@ -84,17 +84,26 @@ function selectMonth(selectedMonth) ...@@ -84,17 +84,26 @@ function selectMonth(selectedMonth)
function enableGlobalDatePickerHotKeys() function enableGlobalDatePickerHotKeys()
{ {
Mousetrap.bind('left', function() Mousetrap.bind('left', function()
{
if(areHotKeysEnabled())
{ {
document.getElementById('global-datepicker-previous-month').click(); document.getElementById('global-datepicker-previous-month').click();
}
}); });
Mousetrap.bind('right', function() Mousetrap.bind('right', function()
{
if(areHotKeysEnabled())
{ {
document.getElementById('global-datepicker-next-month').click(); document.getElementById('global-datepicker-next-month').click();
}
}); });
Mousetrap.bind('0', function() Mousetrap.bind('0', function()
{
if(areHotKeysEnabled())
{ {
document.getElementById('global-datepicker-today').click(); 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