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,
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
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: