Path: utzoo!mnetor!uunet!lll-winken!lll-tis!ames!umd5!purdue!decwrl!nsc!voder!apple!darin From: darin@Apple.COM (Darin Adler) Newsgroups: comp.sys.mac.programmer Subject: Re: Fake a KeyDown as MouseDown in Modal Dialog Message-ID: <8996@apple.Apple.Com> Date: 27 Apr 88 01:07:44 GMT References: <7735@ames.arpa> Reply-To: darin@apple.UUCP (Darin Adler) Organization: Apple Lines: 16 In article <7735@ames.arpa> soe@ames.arpa (Brad Soe) writes: > 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. The Dialog Manager routine SelIText allows you to change the selection in dialog manager editText items. When you see a return key hit in your filter, you can just call SelIText to select the next box, then change the event to a nullEvent, so that the Dialog Manager will not process it. Alternatively, you can change the value of the key in the event to Tab, fooling the Dialog Manager into thinking that the user hit the Tab key, which behaves in the way you describe it. -- Darin Adler AppleLink:Adler4 UUCP: {sun,voder,nsc,mtxinu,dual}!apple!darin CSNET: darin@Apple.com