Re: XForms: multiline input and canvas problem with keystrokes

Steve Lamont (spl@szechuan.ucsd.edu)
Tue, 7 Apr 98 06:09:10 PDT

# To subscribers of the xforms list from spl@szechuan.ucsd.edu (Steve Lamont) :

> I have a multiline input and a canvas. If the mouse cursor is
> outside the canvas the multiline input will get all the keystrokes
> (that's ok). But in the canvas i am not be able to send the keys to
> the input. I have tried all combinations with all the handlers. In
> xforms 0.86? or earlier the method described below has done the job
> very well.

The simplest way is to simply disable the Canvas's KeyPress event
handler -- then the event will be propagated to the form itself and,
thence, to the multiline input.

Use

fl_remove_canvas_handler( fd_test->canvas, KeyPress, NULL );

The Canvas object, by default, is interested in receiving KeyPress,
Expose, and StructureNotify events.

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