do you know if it is possible to close Vaadin addon MessageBox with keyPress? I didn't find anything about that in documentation. Only thing I found out is that I can confirm button with 'Enter' when it is focused, but I also want to close it with 'ESC' (bind 'ESC' to 'Close' button).
Code snippet:
MessageBox mb = MessageBox.createInfo();
mb.withMessage("Directory does not exist. Do you wish to create it?")
.withYesButton(this::copyToNewDir,ButtonOption.focus()) // I can trigger this action with ENTER
.withNoButton() //Don't know how to close this with ESC
.open();
Thank you.