[gtkada] Re: Using modifier+return in Gtk_Entry

Stefan Bellon sbellon at sbellon.de
Fri Oct 15 18:29:45 CEST 2004


Manuel Op de Coul wrote:

> You're using the wrong signal, "activate" doesn't include
> modifier keys in its parameters.

I know. But I somehow didn't realize that there's _no_ way to get at
them once you're in the "activate" handler.

> So you should attach handlers for "key_press_event" and
> "button_press_event" [corrected the mistake according to your later
> posting]. In the former you check whether it was the enter key that
> was pressed, [...]

Thanks, it's indeed much easier this way.

-- 
Stefan Bellon



More information about the gtkada mailing list