Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DatePicker and Combobox ignore key modifiers #6765

Open
guttormvik2 opened this issue Oct 31, 2024 · 1 comment
Open

DatePicker and Combobox ignore key modifiers #6765

guttormvik2 opened this issue Oct 31, 2024 · 1 comment

Comments

@guttormvik2
Copy link

guttormvik2 commented Oct 31, 2024

Describe the bug

DatePicker and Combobox fields open their panel on ArrowUp/ArrowDown, but they ignore the modifiers, so that ctrl-ArrowUp, shift-ArrowUp etc does the same.

This again means it is not possible to add my own Alt-ArrowUp/Down listener (which I want to do to move editor row up/down in Grid)

I see the same behavior in KeyNotifier.addKeyDownListener.
I assume most users are not aware that any modifier they don't specify is ignored, and they have to test event.modifiers themselves.
Strangely enough, it looks like Shortcuts.addShortcutListener does it the right way.

Expected-behavior

DatePicker and Combobox fields should do nothing on [any modifier given]-ArrowUp/ArrowDown

Reproduction

In https://vaadin.com/docs/latest/components/combo-box#auto-open click in field and press ctrl-shift-Alt-ArrowDown

System Info

Windows 10, Vaadin 24.5.1, Firefox 131.0.3

@guttormvik2 guttormvik2 added the bug Something isn't working label Oct 31, 2024
@web-padawan web-padawan transferred this issue from vaadin/platform Oct 31, 2024
@TatuLund
Copy link
Contributor

TatuLund commented Oct 31, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants