Hello, On Mon, 10 Sep 2018 17:08:08 -0500, Michael Catanzaro <mcatanz...@igalia.com> wrote: > On Thu, Sep 6, 2018 at 4:35 AM, Michael Gratton <m...@vee.net> wrote: > > I've seen https://bugs.webkit.org/show_bug.cgi?id=157793, but is > > there any know work-around? > > I can't think of any workaround. I think we just need to fix it.
Here goes an *ugly* alternative: 1. Install a user script message handler with webkit_user_content_manager_register_script_message_handler() 2. Add an injected JS script with webkit_user_content_manager_add_script() 3. In your injected JS script, handle the “focusout” event on the document. Determine which HTML element is the last one that can receive focus on the page (tricky for pages which load content when scrolling). If that last element loses focus, send an user script message. 4. In the handler for the user script message, use GTK+ functions to focus the next widget i.e. gtk_widget_child_focus() Certainly clunky, and I am not 100% sure whether it would work decently, but at least the idea might be a starting point for you to take over from here. Cheers, -Adrián
pgpyxFr5BJj_9.pgp
Description: PGP signature
_______________________________________________ webkit-gtk mailing list webkit-gtk@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-gtk