[comp.sys.mac.programmer] Keyboard Problem - Completor Characters

GG.DAR@forsythe.stanford.edu (Aaron Reizes) (02/04/89)

Various keys on the mac keyboard are used to modifiy the next
character, usually associated with the option key.  For example if
you press 'OPTION e', and then 'o' you get an o with an accent mark
above it.

Well and good, but how do you turn this off? What if I just want to
get the option e directly into the system?

This sounds like the completor records in the KCHR resource??  If
so, is there a simple way to turn this off if I don't want it,
without having to edit the KCHR resource.  Also, since this problem
is in pre-ADB keyboards how would I shut it off for a MAC+ ?

Thanks,

Aaron Reizes            gg.dar@forsythe.stanford.edu

oster@dewey.soe.berkeley.edu (David Phillip Oster) (02/05/89)

The original posting asked, how do you turn off "dead keys", so
<Option>-e, will return immediately, instead of waiting for the next
keystroke.

I did this recently.
(1) Do a sysenvirons. If you are running on an old macintosh, on a system
more primitive than System 5.0, there is an integer flag, 2 bytes into the
KMAP procedure resource, to disable dead keys.
(2) if you are on a newer system than that, use the sript manager calls
documented in inside mac vol 5. (even on a macplus) to install a new roman
keybaord map. You can create an appropriate map\by using resEdit on a
ADB equipped machine to produce a new KCHR resource that has no dead keys.
Your program should restore the keyboard state
(a) whenever it is suspended in multi-finder (i.e., set the multi-finder
aware bit in your size resource and check for its events.)
(b) whenever it does not have an active window. (for example, a d.a.
might be on top.)


--- David Phillip Oster            --"When we replace the mouse with a pen,
Arpa: oster@dewey.soe.berkeley.edu --3 button mouse fans will need saxophone
Uucp: {uwvax,decvax}!ucbvax!oster%dewey.soe.berkeley.edu --lessons." - Gasee