From f2bbea2cec809e0b35105c99bf3e14192e9ba88c Mon Sep 17 00:00:00 2001 From: Felix Nagel Date: Wed, 13 Apr 2016 22:19:01 +0200 Subject: [PATCH] Calendar: Use shift and ctrl key as modifier for page up / down --- ui/widgets/calendar.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ui/widgets/calendar.js b/ui/widgets/calendar.js index 2a4d084c3..767f285e9 100644 --- a/ui/widgets/calendar.js +++ b/ui/widgets/calendar.js @@ -123,15 +123,17 @@ return $.widget( "ui.calendar", { }, _handleKeydown: function( event ) { + var pageAltKey = ( event.altKey || event.ctrlKey && event.shiftKey ); + switch ( event.keyCode ) { case $.ui.keyCode.ENTER: this.activeDescendant.mousedown(); return; case $.ui.keyCode.PAGE_UP: - this.date.adjust( event.altKey ? "Y" : "M", -1 ); + this.date.adjust( pageAltKey ? "Y" : "M", -1 ); break; case $.ui.keyCode.PAGE_DOWN: - this.date.adjust( event.altKey ? "Y" : "M", 1 ); + this.date.adjust( pageAltKey ? "Y" : "M", 1 ); break; case $.ui.keyCode.END: this.date.setDay( this.date.daysInMonth() ); -- 2.39.5