Browser Keystrokes

Dick Middleton (
Mon, 14 Apr 1997 13:48:27 +0100

To subscribers of the xforms list from Dick Middleton <> :

> 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.

To unsubscribe, send the message "unsubscribe" to or see
Xforms Home Page:
List Archive: