Re: EntryCompletion



On 24.01.2017 21:11, Jeffrey Ratcliffe wrote:
On 24 January 2017 at 20:54, Torsten Schoenfeld <kaffeetisch 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.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]