You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] Calendar: Shift+Page Up and Shift+Page Down move a month instead of a year #8947
In Calendar (and the calendars of DateInput, DateRangeInput and DateTimeInput), Shift+Page Up and Shift+Page Down move the focused day by one month, the same as Page Up and Page Down without Shift. The APG Date Picker Dialog pattern gives them a year: "Shift + Page Up: Changes the grid of dates to the same date in the previous year", and Shift + Page Down to the next year.
useGridFocus maps PageUp/PageDown to onPageUp/onPageDown without looking at shiftKey (useGridFocus.ts:573-578), and Calendar's handlers always page by 1, 'months' (Calendar.tsx:956-969). #7467 added the month paging; the year keys were not part of it.
For a keyboard user a date a few years away (a birth date, an expiry date) takes twelve presses per year today.
Expected: Shift+Page Up and Shift+Page Down move the focused day to the same date in the previous or next year (clamped to the month's last day, and subject to min, max and dateConstraints as the month keys are).
Activity
fix(Calendar): Shift+Page Up and Shift+Page Down move by a year (meta…