diff options
author | Henri Sara <hesara@vaadin.com> | 2017-05-09 09:18:47 +0300 |
---|---|---|
committer | Henri Sara <henri.sara@gmail.com> | 2017-05-10 12:37:58 +0300 |
commit | 6f9825319a80797e22c83f855fe083dd93567137 (patch) | |
tree | d56a710a9c4141e6b171e0c8fd166fdc0f0c444c /client/src | |
parent | 027b14f484f9e072ebba9b8be7d9c0f3d87d39de (diff) | |
download | vaadin-framework-6f9825319a80797e22c83f855fe083dd93567137.tar.gz vaadin-framework-6f9825319a80797e22c83f855fe083dd93567137.zip |
Fix selection with space in TreeGrid/Tree
Makes subclasses of Grid call custom key and mouse event handlers.
Diffstat (limited to 'client/src')
-rwxr-xr-x | client/src/main/java/com/vaadin/client/widgets/Grid.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/client/src/main/java/com/vaadin/client/widgets/Grid.java b/client/src/main/java/com/vaadin/client/widgets/Grid.java index 27db38c4a1..f94c45f780 100755 --- a/client/src/main/java/com/vaadin/client/widgets/Grid.java +++ b/client/src/main/java/com/vaadin/client/widgets/Grid.java @@ -2318,7 +2318,7 @@ public class Grid<T> extends ResizeComposite implements HasSelectionHandlers<T>, if (!Element.is(target)) { return null; } - return WidgetUtil.findWidget(Element.as(target), Grid.class); + return WidgetUtil.findWidget(Element.as(target), Grid.class, false); } /** @@ -2385,7 +2385,7 @@ public class Grid<T> extends ResizeComposite implements HasSelectionHandlers<T>, if (!Element.is(target)) { return null; } - return WidgetUtil.findWidget(Element.as(target), Grid.class); + return WidgetUtil.findWidget(Element.as(target), Grid.class, false); } /** @@ -5623,7 +5623,7 @@ public class Grid<T> extends ResizeComposite implements HasSelectionHandlers<T>, if (renderer instanceof WidgetRenderer) { try { Widget w = WidgetUtil.findWidget( - cell.getElement().getFirstChildElement(), null); + cell.getElement().getFirstChildElement()); if (w != null) { // Logical detach @@ -7459,7 +7459,7 @@ public class Grid<T> extends ResizeComposite implements HasSelectionHandlers<T>, } private boolean isElementInChildWidget(Element e) { - Widget w = WidgetUtil.findWidget(e, null); + Widget w = WidgetUtil.findWidget(e); if (w == this) { return false; |