Ascii Equivalents for KeyUp/KeyDown events

Bob Arning arning at charm.net
Mon Dec 11 16:21:58 UTC 2000


Another interesting situation to ponder if one tries to attach character codes to key events is how to handle multi-key sequences. To type an e with an accent on the Mac, one does:

1. press option key
2. press e key
3. release e key
4. release option key
5. press e key again
6. release e key

Curiously, the VM I am using reports 

- a key UP for the e key after step 4 
- a key down for the e and the correct ascii character after step 5
- a key UP for the e key after step 6

So, I'm wondering what character codes one would desire to have assovciated with each of these events.

Cheers,
Bob





More information about the Squeak-dev mailing list