Skip to content

Commit 0524c05

Browse files
committed
fix(material/datepicker): fix date picker shortcuts 
Fixes a bug in the Angular Material datepicker component where the datepicker should open/close only on alt+down and alt+up respectively but using shift + ctrl + alt + down or ctrl + alt + down the datepicker was opening, and same happens for closing the date picker added a condition to check if ctrl, shift or meta keys are present and if it is present restricting datepicker to not to open/close. Fixes #25868
1 parent 0010f86 commit 0524c05

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tools/public_api_guard/cdk/keycodes.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,9 @@ export const MAC_WK_CMD_RIGHT = 93;
190190
// @public (undocumented)
191191
export const META = 91;
192192

193+
// @public
194+
export type ModifierKey = 'altKey' | 'shiftKey' | 'ctrlKey' | 'metaKey';
195+
193196
// @public (undocumented)
194197
export const MUTE = 173;
195198

0 commit comments

Comments
 (0)