home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / next / programm / 6021 < prev    next >
Encoding:
Text File  |  1992-09-08  |  1.3 KB  |  35 lines

  1. Newsgroups: comp.sys.next.programmer
  2. Path: sparky!uunet!sun-barr!cs.utexas.edu!sdd.hp.com!wupost!psuvax1!colossus.cs.psu.edu!grio
  3. From: grio@colossus.cs.psu.edu (Daniel L Grillo)
  4. Subject: Re: setting a button key to be ESC
  5. Message-ID: <Bu68tK.37L@cs.psu.edu>
  6. Sender: news@cs.psu.edu (Usenet)
  7. Nntp-Posting-Host: colossus.cs.psu.edu
  8. Organization: Penn State Computer Science
  9. References: <Bu33xu.7x3@cs.psu.edu> <1992Sep6.145546.7044@next.cambridge.ma.us>
  10. Date: Sun, 6 Sep 1992 19:29:43 GMT
  11. Lines: 22
  12.  
  13. In article <1992Sep6.145546.7044@next.cambridge.ma.us> simsong@next.cambridge.ma.us writes:
  14. >In article <Bu33xu.7x3@cs.psu.edu> grio@postscript.cs.psu.edu (Daniel L Grillo)  
  15. >writes:
  16. >> 
  17. >> In the IB inspector, I'd like to set a button's key equivalent to be ESC.
  18. >> I can't get it to work.
  19. >> 
  20. >
  21. >Since key equivalents can only be command keys, and not the ESC key, you're out  
  22. >of luck, unless you want the button to be command-ESC.
  23. >
  24. >You could subclass the Window object, override the keyDown: method, and turn  
  25. >ESC into some command- key.
  26.  
  27. I should have been more explict.  A button in a _Panel_ can have a key
  28. equivalent that is not a command key.   Keys like "d" and "." work fine.
  29. I was hoping there was a way to use ESC, without subclassing Panel.
  30.  
  31.  
  32.             --Dan
  33. -- 
  34.  Dan Grillo   grio@cs.psu.edu   [NeXTmail, PrivateMail, MIME welcome]
  35.