Re: GTK use of function keys



"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]