Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!uwvax!astroatc!nicmad!madnix!jason From: jason@madnix.UUCP (Jason Blochowiak) Newsgroups: comp.sys.apple Subject: Re: finder follies Message-ID: <1121@madnix.UUCP> Date: 18 Feb 90 22:45:53 GMT References: <10401.infoapple.net@pro-generic> <38530@apple.Apple.COM> <19509@nuchat.UUCP> <90044.184626DCS100@PSUVM.BITNET> Reply-To: jason@madnix.UUCP (Jason Blochowiak) Organization: ARP Software, Madison, WI Lines: 28 DCS100@psuvm.psu.edu (Dave Schweisguth) writes: > [Lotsa stuff deleted] >By golly, all those keys do work. In fact, control-apple-2 usually (always?) >selects the first choice in the Apple menu in _any_ S16 program, Finder >included ... control-apple-2-option-shift does the same thing as option-shift- >"About the Finder ..." by extenstion. >So does anyone know why control-apple-2 does what it does? Not exactly, but I have a pretty good guess. The menu mgr stores the key equivs (OpenApple-O = Open, for example) in the menu record when the program is running. When the user hits a key, a bunch of stuff happens, and eventually (under normal circumstances) a routine called MenuKey() gets called. MenuKey() scans through the entire menu bar, looking for a match to the key. Now, if a menu item doesn't have an equiv, what's it going to be stored as in the menu record? A null byte (0). What character does Control-@ (same as Control-2 on the //gs) generate? A null byte. So, I would think that the menu mgr would say "aha! there's a match". Of course, if the About box has a key attached (say, OA-?), then OA-Ctl-@ would select the first NDA, or whatever item was first in the menu bar that didn't have an equiv. >| Dave Schweisguth Home: 814-862-0806 dcs100@psuvm.psu.edu >| 406 Althouse Laboratory Work: 814-863-2791 America Online: Von Mordo -- Jason Blochowiak - jason@madnix.UUCP or, try: astroatc!nicmad!madnix!jason@spool.cs.wisc.edu "Education, like neurosis, begins at home." - Milton R. Saperstein