Re: GTK use of function keys
- From: Carlos Pereira <carlos pehoe civil ist utl pt>
- To: gtk-app-devel-list gnome org
- Subject: Re: GTK use of function keys
- Date: Fri, 3 Aug 2001 17:22:31 +0100
I have a control screen with buttons representing the keyboard function
keys. I want to allow the operator to click the screen button or press the
function key on the keyboard. I have code working that detects the event
"key_press" but I am unable to detect any function keys. The event->length
value is always 0 for these keys. GIMP uses the "F1" key for help so I know
this is do-able. What am I missing?
Carlos
gint callback_handle_key_press (GtkWidget *widget,
GdkEventKey *event, gpointer data)
{
...
switch (event->keyval)
{
case GDK_Escape:
...
case GDK_F1:
...
case GDK_F2:
...
case GDK_F3:
...
case GDK_Page_Down:
...
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]