Clicking on the left or right of a TreeItem now focuses on the Tree and enables Keyboard support.  Previously, the item appeared selected, but keyboard support wouldn't work.

Patch by: jlabanca
Review by: ecc (desk)



git-svn-id: https://google-web-toolkit.googlecode.com/svn/releases/1.6@4612 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 e6b5a07..0f96566 100644
--- a/user/src/com/google/gwt/user/client/ui/Tree.java
+++ b/user/src/com/google/gwt/user/client/ui/Tree.java
@@ -516,8 +516,7 @@
           // The click event should have given focus to this element already.
           // Avoid moving focus back up to the tree (so that focusable widgets
           // attached to TreeItems can receive keyboard events).
-        } else if (curSelection != null
-            && curSelection.getContentElem().isOrHasChild(e)) {
+        } else if (curSelection != null) {
           setFocus(true);
         }
         break;