home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.hypercard
- Path: sparky!uunet!caen!saimiri.primate.wisc.edu!zazen!news
- From: demerit@vms.macc.wisc.edu (J. DeMerit)
- Subject: Re: Trapping the esc key?
- Message-ID: <1992Dec14.182252.11408@macc.wisc.edu>
- Sender: news@macc.wisc.edu (USENET News System)
- Organization: University of Wisconsin Academic Computing Center
- Date: 14 DEC 92 12:18:26
- Lines: 26
-
- In article <SRO.92Dec12003338@media-lab.media.mit.edu>, sro@media.mit.edu (Shawn O'Donnell) writes...
-
- >Hey Doug--
- >
- >Maybe there's a more elegant way to intercept the escape key, but the
- >following seems to work. I've noticed that you have to go this route
- >if you want to intercept certain of the non-character keys from the
- >extended keyboard (like page-up or page-down, for example, despite the
- >fact that they are really Cntl-K and Cntl-L. A handler based on
- >ControlKey won't work for those keys. With escape, I this may be
- >the only option.)
- >
- >On keydown key
- > if chartoNum(key) is not 27 then
- > pass keydown
- > end if
- >end keydown
- >
-
-
- You can also "set lockRecent to true" on idle. It switches back to false on
- idle. This is how the mini-cards are recorded and how the escape key retraces
- its path. If nothing in the path, you get it? I think the on keyDown is
- more elegant and is what I would choose, but I thought this aspect worth
- mentioning.
-
-