Path: utzoo!mnetor!uunet!lll-winken!lll-tis!ames!soe From: soe@ames.arpa (Brad Soe) Newsgroups: comp.sys.mac.programmer Subject: Fake a KeyDown as MouseDown in Modal Dialog Message-ID: <7735@ames.arpa> Date: 22 Apr 88 22:56:09 GMT Organization: NASA Ames Research Center, Moffett Field, CA Lines: 18 I want to know if it is possible to use the filter function passed to ModalDialog to take a keydown event, change it to a mousedown event, and have ModalDialog process this. I have a problem where I have two textedit boxes in a dialog. I want the dialog to behave in such a way that if the user hits the return key in one textedit box, the cursor automatically goes to the next text box and activates it. I have tried to modify: event.where to a point in the rectangle, set event.what = mouseDown, and OrBit(Event.modifiers, 128) (sets the mouse down bit), but it does'nt seem to work. Is there a way to do this? Brad Soe internet : soe@ames.arc.nasa.gov NASA Ames Research Ctr. Mail Stop 233-18 Moffett Field, CA 94035 (415) 694-4866