diff --git a/src/main/resources/static/js/globalDatePicker.js b/src/main/resources/static/js/globalDatePicker.js index a7ec249b199b882bc86198c60f69660dc1d930c6..986c8b5742870442c14f3e670b2f6c1446207717 100644 --- a/src/main/resources/static/js/globalDatePicker.js +++ b/src/main/resources/static/js/globalDatePicker.js @@ -85,16 +85,25 @@ function enableGlobalDatePickerHotKeys() { Mousetrap.bind('left', function() { - document.getElementById('global-datepicker-previous-month').click(); + if(areHotKeysEnabled()) + { + document.getElementById('global-datepicker-previous-month').click(); + } }); Mousetrap.bind('right', function() { - document.getElementById('global-datepicker-next-month').click(); + if(areHotKeysEnabled()) + { + document.getElementById('global-datepicker-next-month').click(); + } }); Mousetrap.bind('0', function() { - document.getElementById('global-datepicker-today').click(); + if(areHotKeysEnabled()) + { + document.getElementById('global-datepicker-today').click(); + } }); }