-
20 Nov 2009 6:58 AM #1
[CLOSED] Window:onEsc working inconsistently in FF3
[CLOSED] Window:onEsc working inconsistently in FF3
Hi. I've noticed that following simple code works inconsistently:
Just after the onModuleLoad is finished, pressing Esc closes window. Although, if you perform single lbutton mouse click at the window titlebar, pressing Esc does not close window.Code:public void onModuleLoad() { Window w = new Window(); w.setTitle("Broken onEsc"); w.setSize(200, 230); w.setPosition(10, 10); w.setClosable(true); w.setOnEsc(true); w.show(); }
In the IE browser, it is stable.
Moreover, I've noticed that event is generated, etc, event is lost at the check if the window is or has event target as child. RIght here:
Code:// Window.class line 1006 protected void onKeyPress(WindowEvent we) { int keyCode = we.getKeyCode(); if (closable && onEsc && keyCode == KeyCodes.KEY_ESCAPE && getElement().isOrHasChild((com.google.gwt.dom.client.Element) we.getEvent().getEventTarget().cast())) { hide(); } }
is that already known/any workarounds?
-
20 Nov 2009 7:33 AM #2
This works fine against the latest version. Marking this as closed.
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote