Re: Key press synthesis (for WebKitGTK)

2018-11-24 Thread Gergely Polonkai
On Sat, Nov 24, 2018 at 09:59:00AM +0100, Pierre Neidhardt wrote: > Hi Gergely, > > > So if you change your handler’s return type from `void` to `gboolean` > > and return `FALSE` if the lisp thingy doesn’t understand your key, it > > will be automatically propagated to the next handler (which,

Re: Key press synthesis (for WebKitGTK)

2018-11-24 Thread Pierre Neidhardt
Hi Gergely, > So if you change your handler’s return type from `void` to `gboolean` > and return `FALSE` if the lisp thingy doesn’t understand your key, it > will be automatically propagated to the next handler (which, hopefully, > will insert your "a" key. Thanks for the tip. Indeed, I had

Re: Key press synthesis (for WebKitGTK)

2018-11-23 Thread Gergely Polonkai
Hello, from the manual (https://developer.gnome.org/gtk3/stable/GtkWidget.html#GtkWidget-key-press-event), the signature of key-press-event handlers is: ``` gboolean user_function (GtkWidget *widget, GdkEvent *event, gpointer user_data) ``` From the same manual: