Re: catching ESC key



On 7/30/05, muppet <scott asofyet org> wrote:
For anything else, ESC is just like any other key.  Connect to 'key-
press-event' and look for $event->keyval == $Gtk2::Gdk::Keysyms{Escape}.

thanks.

The sad thing is that I was looking for this only in the C
documentation where I could
only find this
http://developer.gnome.org/doc/API/2.0/gdk/gdk-Keyboard-Handling.html
which does not mention any special key while in the Perl documetation there is
an example with the Escape key:

http://gtk2-perl.sourceforge.net/doc/pod/Gtk2/Gdk/Keysyms.html

So thanks for the help.

I will need to somehow improve the way I am looking for solutions.

Gabor



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