Re: Key press 'Enter' signal



>Hello,
>
>How can I connect a window or other widget to a key
>press 'Enter'?
>
>If you prefer : What's signal is emit when I press on
>the key 'Enter'????

there is no single answer. 

if you connect to the "key_press_event" or "key_release_event" signals,
you can check the keyvalue for GDK_Enter.

some (not many) widgets emit an "activate" signal, typically when
Enter is pressed in them. GtkEntry is one such widget. Most widgets do
not do this.

--p



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