Re: Browser Keystrokes

Dr. T.C. Zhao (
Sat, 12 Apr 1997 01:06:49 -0500

To subscribers of the xforms list from "Dr. T.C. Zhao" <> :

from spl

>something of a misfeature in the Post Object handling: the handler is
>fed a synthetic FL_MOTION event for the keystroke. (TC: Howcome? Why
>not an FL_KEYBOARD?)

I lost track of the beginging of this thread. Anyway, keyboard
event is not sent to the object unless the object
requested it. 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;

(using a hidden input is certainly a workable solution for
this particular problem).

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