Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!mcsun!ukc!edcastle!lfcs!nick From: nick@lfcs.ed.ac.uk (Nick Rothwell) Newsgroups: comp.sys.mac.programmer Subject: ENTER/Return in Modeless dialog Message-ID: <419@castle.ed.ac.uk> Date: 15 Sep 89 13:04:11 GMT Sender: root@castle.ed.ac.uk Reply-To: nick@lfcs.ed.ac.uk (Nick Rothwell) Organization: LFCS Enya Admiration Society Lines: 13 Modal dialogs interpret Return/Enter as a hit on button item #1, which avoids newlines going into TextEdit fields. I want to do the same with modeless dialogs. In particular, I *don't* want Return/Enter to put in a newline (making the text disappear in a one-line TextEdit box). If possible, I'd like to see the key event as well. Is this possible? Will I get flamed for even thinking of trying to do it? Nick. -- Nick Rothwell, Laboratory for Foundations of Computer Science, Edinburgh. nick@lfcs.ed.ac.uk !mcvax!ukc!lfcs!nick ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ Fais que ton reve soit plus long que la nuit.