Re: GTK use of function keys
- From: Havoc Pennington <hp redhat com>
- To: "Norris, Kendall P." <Kendall Norris Honeywell com>
- Cc: "'gtk-app-devel-list gnome org'" <gtk-app-devel-list gnome org>
- Subject: Re: GTK use of function keys
- Date: 03 Aug 2001 11:43:19 -0400
"Norris, Kendall P." <Kendall Norris Honeywell com> writes:
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?
switch (event->keyval)
{
case GDK_F1:
break;
case GDK_F2:
break;
}
etc.
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]