Skip to content

Commit

Permalink
Accessibility: trigger actions via spacebar
Browse files Browse the repository at this point in the history
  • Loading branch information
c-w committed Apr 17, 2017
1 parent f9d13b5 commit 12c53ed
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -198,7 +198,7 @@ export class CalendarDay extends BaseComponent<ICalendarDayProps, ICalendarDaySt
}

private _onKeyDown(callback: () => void, ev: React.KeyboardEvent<HTMLElement>) {
if (ev.which === KeyCodes.enter) {
if (ev.which === KeyCodes.enter || ev.which === KeyCodes.space) {
callback();
}
}
Expand Down

0 comments on commit 12c53ed

Please sign in to comment.