Skip to content

bug(DatePicker): Fix shortcut to open datepicker #25868

Closed
@DannyBoyNg

Description

@DannyBoyNg

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

The shortcut to open/close the datepicker is Alt+up/down. The problem is the datepicker also opens when I press Ctrl+Alt+down or even Ctrl+Shift+Alt+down. That is super annoying because I use those shortcuts for other things. Can we please put a check in that Ctrl and Shift are not pressed before opening the Datepicker. So only Alt+down. That would be extremely helpful.

Reproduction

Steps to reproduce:

  1. Press Ctrl+Alt+down
  2. Press Ctrl+Shift+Alt+down

Expected Behavior

I expect the Datepicker not to open when either Ctrl or Shift are pressed.

Actual Behavior

The Datepicker will open.

Environment

  • Angular: 14.2.6
  • CDK/Material: 14.2.5
  • Browser(s): Chrome
  • Operating System (e.g. Windows, macOS, Ubuntu): Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4A relatively minor issue that is not relevant to core functionsarea: material/datepicker

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions