disable window close on escape button press

I would like to disable window close on escape key press … one way is to make the window non closable … but that will remove the x button(closebox) which is not desired … please help me …

found the issue … by default vaadin gwt extention VWindow class has keyup handler which on escape key press closes the window … I have made a custom widget which will prevent window close on escape key press conditionaly … closeonescape boolean decides to close or prevent close
18754.jar (11.4 KB)