home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.next.programmer
- Path: sparky!uunet!sun-barr!cs.utexas.edu!sdd.hp.com!wupost!psuvax1!colossus.cs.psu.edu!grio
- From: grio@colossus.cs.psu.edu (Daniel L Grillo)
- Subject: Re: setting a button key to be ESC
- Message-ID: <Bu68tK.37L@cs.psu.edu>
- Sender: news@cs.psu.edu (Usenet)
- Nntp-Posting-Host: colossus.cs.psu.edu
- Organization: Penn State Computer Science
- References: <Bu33xu.7x3@cs.psu.edu> <1992Sep6.145546.7044@next.cambridge.ma.us>
- Date: Sun, 6 Sep 1992 19:29:43 GMT
- Lines: 22
-
- In article <1992Sep6.145546.7044@next.cambridge.ma.us> simsong@next.cambridge.ma.us writes:
- >In article <Bu33xu.7x3@cs.psu.edu> grio@postscript.cs.psu.edu (Daniel L Grillo)
- >writes:
- >>
- >> In the IB inspector, I'd like to set a button's key equivalent to be ESC.
- >> I can't get it to work.
- >>
- >
- >Since key equivalents can only be command keys, and not the ESC key, you're out
- >of luck, unless you want the button to be command-ESC.
- >
- >You could subclass the Window object, override the keyDown: method, and turn
- >ESC into some command- key.
-
- I should have been more explict. A button in a _Panel_ can have a key
- equivalent that is not a command key. Keys like "d" and "." work fine.
- I was hoping there was a way to use ESC, without subclassing Panel.
-
-
- --Dan
- --
- Dan Grillo grio@cs.psu.edu [NeXTmail, PrivateMail, MIME welcome]
-