[webkit-gtk] Keyboard nav out of a WebView
Adrian Perez de Castro
aperez at igalia.com
Tue Sep 11 12:27:34 PDT 2018
On Mon, 10 Sep 2018 17:08:08 -0500, Michael Catanzaro <mcatanzaro at igalia.com> wrote:
> On Thu, Sep 6, 2018 at 4:35 AM, Michael Gratton <mike at 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
2. Add an injected JS script with
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 195 bytes
Desc: not available
More information about the webkit-gtk