window remove escape shorcut

I’m working with vaadin 7.6.1 release.
In vaadin 7.6 release notes.

https://vaadin.com/download/release/7.6/7.6.0/release-notes.html

This issue was fixed with the ticket, “#17383 Window should not have ESC close shortcut hardcoded”.

But i can’t get it to work properly.

example:
Window v= new Window();
v.setWidth(“50%”);
v.setHeight(“50%”);

v.removeCloseShortcut(KeyCode.ESCAPE, null);

UI.getCurrent().addWindow(v);

when i press escape key the window is closed it,any idea?

thank you.

Try
v.removeAllCloseShortcuts()

Thank you.
it worked properly.