Ascii Equivalents for KeyUp/KeyDown events
Marcel Weiher
marcel at metaobject.com
Tue Nov 28 23:57:57 UTC 2000
> From: "Lex Spoon" <lex at cc.gatech.edu>
> I'm sure someone will post a more thorough response, but note that not
> all keys *have* an ASCII code. What is ASCII for F1, or up-arrow?
Several possible solutions:
1. Use Unicode instead of ASCII and define private characters
for special keys
2. Assocate strings with the event and generate an equivalent
escape-sequence
(you still know that it was a single key because it comes in
one event)
3. You still have the raw keyboard code...
AFAIK, MacOS-X/Cocoa does all of these at the same time.
Marcel
More information about the Squeak-dev
mailing list
|