home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / next / programm / 6018 < prev    next >
Encoding:
Internet Message Format  |  1992-09-08  |  1007 b 

  1. Path: sparky!uunet!stanford.edu!snorkelwacker.mit.edu!ai-lab!next.cambridge.ma.us!simsong
  2. From: simsong@next.cambridge.ma.us (Simson L. Garfinkel)
  3. Newsgroups: comp.sys.next.programmer
  4. Subject: Re: setting a button key to be ESC
  5. Message-ID: <1992Sep6.145546.7044@next.cambridge.ma.us>
  6. Date: 6 Sep 92 14:55:46 GMT
  7. References: <Bu33xu.7x3@cs.psu.edu>
  8. Sender: simsong@next.cambridge.ma.us
  9. Reply-To: simsong@next.cambridge.ma.us
  10. Organization: Simson Garfinkel and Associates, Inc.
  11. Lines: 15
  12.  
  13. In article <Bu33xu.7x3@cs.psu.edu> grio@postscript.cs.psu.edu (Daniel L Grillo)  
  14. writes:
  15. > In the IB inspector, I'd like to set a button's key equivalent to be ESC.
  16. > I can't get it to work.
  17.  
  18. Since key equivalents can only be command keys, and not the ESC key, you're out  
  19. of luck, unless you want the button to be command-ESC.
  20.  
  21. You could subclass the Window object, override the keyDown: method, and turn  
  22. ESC into some command- key.
  23. -- 
  24.  
  25. ................................................................simson
  26.