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() );