Added logic to Tree to prevent it from blocking native browser history navigation via alt+left/right.
Issue: 1890
Patch by: jlabanca
Review by: ecc
git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@2006 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/user/src/com/google/gwt/user/client/ui/Tree.java b/user/src/com/google/gwt/user/client/ui/Tree.java
index 6fdc56a..65b65d2 100644
--- a/user/src/com/google/gwt/user/client/ui/Tree.java
+++ b/user/src/com/google/gwt/user/client/ui/Tree.java
@@ -414,6 +414,12 @@
}
case Event.ONKEYDOWN:
+ // Issue 1890: Do not block history navigation via alt+left/right
+ if (DOM.eventGetAltKey(event) || DOM.eventGetMetaKey(event)) {
+ super.onBrowserEvent(event);
+ return;
+ }
+
// If nothing's selected, select the first item.
if (curSelection == null) {
if (root.getChildCount() > 0) {