diff options
author | Manuel Carrasco Moñino <manuel.carrasco.m@gmail.com> | 2012-12-10 09:59:36 +0100 |
---|---|---|
committer | Manuel Carrasco Moñino <manuel.carrasco.m@gmail.com> | 2012-12-10 09:59:36 +0100 |
commit | 07263983873c3885b93238d6168aaaa74461c2e8 (patch) | |
tree | 7a5bbd4a724abb4e86bf242456a9e06ab3794098 | |
parent | 9241cc97423e8d2dd949a13d47f513d8fde44798 (diff) | |
download | gwtquery-07263983873c3885b93238d6168aaaa74461c2e8.tar.gz gwtquery-07263983873c3885b93238d6168aaaa74461c2e8.zip |
dont set tabIndex to window. Fixes issue 157
-rw-r--r-- | gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/events/EventsListener.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/events/EventsListener.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/events/EventsListener.java index 886df5b9..38366b60 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/events/EventsListener.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/events/EventsListener.java @@ -25,6 +25,7 @@ import com.google.gwt.query.client.js.JsCache; import com.google.gwt.query.client.js.JsMap; import com.google.gwt.query.client.js.JsNamedArray; import com.google.gwt.query.client.js.JsObjectArray; +import com.google.gwt.query.client.js.JsUtils; import com.google.gwt.user.client.DOM; import com.google.gwt.user.client.Event; import com.google.gwt.user.client.EventListener; @@ -636,7 +637,8 @@ public class EventsListener implements EventListener { } else if ((eventBits | ONRESIZE) == ONRESIZE) { sinkEvent(element, "resize"); } else { - if ((eventBits | Event.FOCUSEVENTS) == Event.FOCUSEVENTS + if ((eventBits | Event.FOCUSEVENTS) == Event.FOCUSEVENTS + && JsUtils.isElement(element) && element.getAttribute("tabIndex").length() == 0) { element.setAttribute("tabIndex", "0"); } |