diff options
author | Teemu Suo-Anttila <teemusa@vaadin.com> | 2014-02-06 16:34:22 +0200 |
---|---|---|
committer | Teemu Suo-Anttila <teemusa@vaadin.com> | 2014-02-06 16:34:22 +0200 |
commit | 51a67370d2f329395edc56fef05838433f14073c (patch) | |
tree | 038671dc8958a19f7617041bbe73d97a5d7d7422 /client | |
parent | 10c129088ac362cf38a113ede8c27fea00b8b6bb (diff) | |
download | vaadin-framework-51a67370d2f329395edc56fef05838433f14073c.tar.gz vaadin-framework-51a67370d2f329395edc56fef05838433f14073c.zip |
Change the way TestBenchSection in Debug Window stops finding mode.
Old one-shot picking replaced with new "pick elements until you click
inside the debug window".
Change-Id: I3ef3327f051f61187d83a66072805d0ceb3f3346
Diffstat (limited to 'client')
-rw-r--r-- | client/src/com/vaadin/client/debug/internal/SelectorPath.java | 2 | ||||
-rw-r--r-- | client/src/com/vaadin/client/debug/internal/TestBenchSection.java | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/client/src/com/vaadin/client/debug/internal/SelectorPath.java b/client/src/com/vaadin/client/debug/internal/SelectorPath.java index b2f72ef34c..b8732e134e 100644 --- a/client/src/com/vaadin/client/debug/internal/SelectorPath.java +++ b/client/src/com/vaadin/client/debug/internal/SelectorPath.java @@ -130,7 +130,7 @@ public class SelectorPath { elementQueryString = queryFragment + elementQueryString; } - if (!path.startsWith("//")) { + if (!tmpPath.startsWith("//")) { elementQueryString = "$" + elementQueryString; } diff --git a/client/src/com/vaadin/client/debug/internal/TestBenchSection.java b/client/src/com/vaadin/client/debug/internal/TestBenchSection.java index 35c0d7abe8..5be75f2003 100644 --- a/client/src/com/vaadin/client/debug/internal/TestBenchSection.java +++ b/client/src/com/vaadin/client/debug/internal/TestBenchSection.java @@ -201,8 +201,6 @@ public class TestBenchSection implements Section { SelectorWidget w = new SelectorWidget(p); content.add(w); - - stopFind(); } private final NativePreviewHandler highlightModeHandler = new NativePreviewHandler() { @@ -222,6 +220,10 @@ public class TestBenchSection implements Section { .getNativeEvent().getClientX(), event.getNativeEvent() .getClientY()); if (VDebugWindow.get().getElement().isOrHasChild(eventTarget)) { + if (isFindMode() && event.getTypeInt() == Event.ONCLICK) { + stopFind(); + event.cancel(); + } return; } |