Browser Keystrokes

Dick Middleton (dick@sqf.hp.com)
Mon, 14 Apr 1997 13:48:27 +0100

To subscribers of the xforms list from Dick Middleton <dick@sqf.hp.com> :

> The main loop uses obj->input and obj->wantkey
> to determine if FL_KEYBOARD event should be generated for
> a particular object. To make a browser keyboard sensitive, do
> the following

> obj = fl_add_browser(...);
> obj->input = 1;
> obj->wantkey = FL_KEY_ALL;

Steve Lamont is right; if you do this keypresses produce FL_MOTION events
with a key value 0 but with mx and my for the current mouse position.

Dick
_________________________________________________
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/