Hi chill_hus,
When you press escape in Firefox it aborts any pending XHRs which gwt-
comet detects and raises the error.
If you want you can prevent this from happening with the following
code:
Event.addNativePreviewHandler(new NativePreviewHandler() {
@Override
public void onPreviewNativeEvent(NativePreviewEvent e) {
if (e.getTypeInt() ==
Event.getTypeInt(KeyDownEvent.getType().getName())) {
NativeEvent nativeEvent = e.getNativeEvent();
if (nativeEvent.getKeyCode() == KeyCodes.KEY_ESCAPE) {
nativeEvent.preventDefault();
}
}
}
});
I've been thinking of adding this to gwt-comet make the behaviour
consistent across browsers, but it may have other effects on
applications that use the ESC key for other purposes.
From Richard