[Webkit-unassigned] [Bug 142757] calling element.focus() from -[WKWebView evaluateJavaScript:completionHandler:] does not show keyboard

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Sep 29 06:54:37 PDT 2015


Emiel Mols <emiel.mols at gmail.com> changed:

           What    |Removed                     |Added
                 CC|                            |emiel.mols at gmail.com

--- Comment #3 from Emiel Mols <emiel.mols at gmail.com> ---
I've managed to work-around this on at least iOS 9 by swizzling _startAssistingNode:userIsInteracting:blurPreviousNode:userObject on WKContentView and overriding the userIsInteracting value:

Pseudo code:

    swizzle_intercept("WKContentView", "_startAssistingNode:userIsInteracting:blurPreviousNode:userObject:", &hackAssist);

    void hackAssist (id self, SEL _cmd, void* arg0, BOOL arg1, BOOL arg2, id arg3) {
        ((void (*)(id,SEL,void*,BOOL,BOOL,id))swizzle_interceptee(hackAssist))(self, _cmd, arg0, TRUE, arg2, arg3);

Use it to your advantage while the API doesn't change ;). Cheers!

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150929/841aa9ff/attachment.html>

More information about the webkit-unassigned mailing list