Path: utzoo!utgpu!watserv1!watmath!att!rutgers!usc!zaphod.mps.ohio-state.edu!wuarchive!udel!haven!mimsy!mojo!russotto From: russotto@eng.umd.edu (Matthew T. Russotto) Newsgroups: comp.sys.mac.programmer Subject: Re: Masking Modified Characters Message-ID: <1990Aug16.175729.29825@eng.umd.edu> Date: 16 Aug 90 17:57:29 GMT References: <3903@husc6.harvard.edu> <1857@mountn.dec.com> Sender: news@eng.umd.edu (The News System) Organization: College of Engineering, Maryversity of Uniland, College Park Lines: 18 In article <1857@mountn.dec.com> minow@bolt.enet.dec.com.UUCP (Martin Minow) writes: >In article <3903@husc6.harvard.edu> siegel@endor.UUCP (Rich Siegel) writes: >>How does one avoid getting option-generated characters when using >>GetNextEvent? >>For example, when I type Command-Option-P, I'll an event which tells me I've >>typed Command-Option-pi, and I'm more interested in what the unmodified >>character was. Is there a standard mask for turning modified characters into >>standard ones, or is there some other hack? > [some other hack omitted] How about looking up the key code in the KCHR (and ignoring the system provided char code entirely)? The routine KeyTrans should do it for you. -- Matthew T. Russotto russotto@eng.umd.edu russotto@wam.umd.edu ][, ][+, ///, ///+, //e, //c, IIGS, //c+ --- Any questions?