I want to handle special keys, e.g. "F3", "Alt-F3" or "Shift-F3".
Within a callback function of an input field, I tried to catch
function keys with
{
...
const XEvent *ev;
...
ev = fl_last_event();
switch ( ev.type ) {
/* do something */
}
...
}
(Q.1)
I discovered that function keys never get through 'fl_last_event()'.
What's wrong? How can I get those keys in addition to the ASCII's?
(Q.2)
More X11 specific: What is the right way to get the "keysym" out of
the XEvent structure? I'd like to do a switch
switch ( keysym ) {
case F1:
switch (state_of_current_key) {
case (SHIFT): /* Shift key was pressed */
...
break;
case (ALT): /* Alt key was pressed */
...
break;
case (CTRL): /* Control key was pressed */
...
break;
}
break;
case F2: ...
case F3: ...
}
Thanks in advance for any hint.
Frank.
-- --------------------------------------------------------------- _/_/_/_/ _/_/ _/_/_/ EAD-Systeme GmbH _/ _/ _/ _/ _/ Nachfeldstr. 4 _/_/_/ _/ _/ _/ _/ D-82490 Farchant, Germany _/ _/_/_/_/_/ _/ _/ Phone: +49 8821 9623-0 _/_/_/_/ _/ _/ _/_/_/_/ Fax: +49 8821 9623-20 --------------------------------------------------------------- Email: <EAD-Frank.Stefani@t-online.de> ---------------------------------------------------------------_________________________________________________ To unsubscribe, send the message "unsubscribe" to xforms-request@bob.usuf2.usuhs.mil or see http://bob.usuf2.usuhs.mil/mailserv/xforms.html Xforms Home Page: http://bragg.phys.uwm.edu/xforms List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/xforms-archive/