https://bugzilla.wikimedia.org/show_bug.cgi?id=31484

--- Comment #14 from Brion Vibber <[email protected]> 2011-10-25 21:08:37 UTC 
---
Ok if I call setWebChromeClient() on the WebView, it breaks! Copied a bunch of
stuff out of the phonegap DroidGap class, and that was the only one to cause
this effect.

        // from DroidGap:
        //
        //this.appView.setWebChromeClient(new GapClient(DroidGap.this));
        //this.setWebViewClient(this.appView, new GapViewClient(this));
        //
        // Including this line kills selection mode activation.
        webby.setWebChromeClient(new WebChromeClient());

The WebChromeClient gets called during WebView.performLongClick():

        if (mNativeClass != 0 && nativeWordSelection(x, y)) {
            nativeSetExtendSelection();
            WebChromeClient client = getWebChromeClient();
            if (client != null) client.onSelectionStart(this);
            return true;
        }

perhaps we're swapping it from a handler that performs the cut-n-paste logic to
one that's ignoring it?

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to