Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
closing modal window through ESC key
hello everyone,
I have a question regarding modal window. I want to close the modal window by hitting 'Escape Key' on keyboard. So Please help me out with your suggestions and solutions?
Thanks
Vikas
Yes it is possible. You need to add a ShortcutAction for the Window. See the corresponding chapter from the Book of Vaadin.
hello ,
Thank you for suggestion. But I am using shortcutaction for enter key when user login so how should i use Escape key shortcut action ?
I am not getting from the book. Plz help me out.
Thanks in advance.
Vikas
Hi!
The first example in this chapter of the book shows you how to use multiple ShortcutActions.
HTH,
/Jonatan