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?


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.



The first example in
this chapter
of the book shows you how to use multiple ShortcutActions.