summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarc Englund <marc.englund@itmill.com>2010-10-08 14:08:59 +0000
committerMarc Englund <marc.englund@itmill.com>2010-10-08 14:08:59 +0000
commitd55e3091ec80e03cd54fc8c54f82c03dc160200f (patch)
tree2accb879380032f11a2195aa08dc46338e0240e1 /src
parent645fa219442d111abb14192d37748dcd720ed7f3 (diff)
downloadvaadin-framework-d55e3091ec80e03cd54fc8c54f82c03dc160200f.tar.gz
vaadin-framework-d55e3091ec80e03cd54fc8c54f82c03dc160200f.zip
We decided to postpone #4200 to 6.5, thus reverted [15455]
svn changeset:15471/svn branch:6.4
Diffstat (limited to 'src')
-rwxr-xr-xsrc/com/vaadin/terminal/gwt/client/ApplicationConnection.java24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/ApplicationConnection.java b/src/com/vaadin/terminal/gwt/client/ApplicationConnection.java
index 9d245ee99b..9cf14b4ec0 100755
--- a/src/com/vaadin/terminal/gwt/client/ApplicationConnection.java
+++ b/src/com/vaadin/terminal/gwt/client/ApplicationConnection.java
@@ -15,8 +15,6 @@ import java.util.Set;
import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.core.client.JsArray;
import com.google.gwt.core.client.JsArrayString;
-import com.google.gwt.dom.client.NativeEvent;
-import com.google.gwt.event.dom.client.KeyCodes;
import com.google.gwt.http.client.Request;
import com.google.gwt.http.client.RequestBuilder;
import com.google.gwt.http.client.RequestCallback;
@@ -27,8 +25,6 @@ import com.google.gwt.user.client.DOM;
import com.google.gwt.user.client.DeferredCommand;
import com.google.gwt.user.client.Element;
import com.google.gwt.user.client.Event;
-import com.google.gwt.user.client.Event.NativePreviewEvent;
-import com.google.gwt.user.client.Event.NativePreviewHandler;
import com.google.gwt.user.client.History;
import com.google.gwt.user.client.Timer;
import com.google.gwt.user.client.Window;
@@ -180,26 +176,6 @@ public class ApplicationConnection {
view.init(cnf.getRootPanelId());
showLoadingIndicator();
- /*
- * This is used to cancel ESC keypresses while the XHR is active,
- * otherwise the XHR might be canceled, at least in some browsers. We'll
- * pass trough the keypress if no XHR is active, so that other stuff
- * might still be canceled (e.g large images).
- */
- Event.addNativePreviewHandler(new NativePreviewHandler() {
- public void onPreviewNativeEvent(NativePreviewEvent event) {
- if (activeRequests <= 0) {
- return;
- }
- if (event.getTypeInt() == Event.ONKEYDOWN) {
- NativeEvent nativeEvent = event.getNativeEvent();
- if (nativeEvent.getKeyCode() == KeyCodes.KEY_ESCAPE) {
- nativeEvent.preventDefault();
- }
- }
- }
- });
-
}
/**