Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!rice!brazos.rice.edu!pete From: pete@titan.rice.edu (Pete Keleher) Newsgroups: comp.sys.mac.programmer Subject: Option Key and the Keyboard Driver, Red Ryder Message-ID: Date: 28 Nov 89 19:31:50 GMT Sender: root@rice.edu Distribution: comp Organization: Whatsamatta U Lines: 27 I'd like to be able to use the option key in an way analagous to the way that the command (clover,whatever) key is used. Unfortunately, the option key changes the character that the keyboard sends. This could be handled by using a table to map option chars back to the original chars, except that not all option sequences generate keyDown events. Specifically, the option-n sequence seems to want to combine with the next keyDown, so no event is generated, and the only way that I know to detect an option-n sequence is the 'getKeys' call, not a good solution. I think that I read in the Red Ryder 10.0 docs that someone wrote a new keyboard driver for him because previous versions of Red Ryder had had the same problem. Sleuthing with TMON showed that the previous versions had used the same kludgey solution that I had used. I would appreciate any information or ideas on how the driver is implemented or what it entails. Is IM sufficient? 'Preditor' also claims to be able to use the option key, but I don't know if it uses it correctly. Any information on how Preditor handles this (if correctly) would also be appreciated. -- =========================================================================== Pete Keleher pete@titan.rice.edu Rice University knows nuttin about what I say, or what I do ... ===========================================================================