On 24.01.2017 21:11, Jeffrey Ratcliffe wrote:
> On 24 January 2017 at 20:54, Torsten Schoenfeld <kaffeeti...@gmx.de> wrote:
>> From the source at
>> <https://git.gnome.org//browse/gtk+/tree/gtk/gtkentrycompletion.c#n912>,
>> it looks like all key press events on the popup are forwarded to the
>> entry.  So, how about catching Gtk3::Gdk::KEY_Delete there?
> 
> Thanks. I'm still using Gtk2, but the principle is the same.
> 
> However, how do I tell whether a suggestion is highlighted in the
> drop-down of the EntryCompletion or not?

Maybe check the "has-focus" property of the entry.
_______________________________________________
gtk-perl-list mailing list
gtk-perl-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-perl-list

Reply via email to