Re: KeyDown event
Re: KeyDown event
- Subject: Re: KeyDown event
- From: Ondra Cada <email@hidden>
- Date: Wed, 24 Oct 2001 12:19:43 +0100
Joe,
>
>>>>> Joe Chan (JC) wrote at Tue, 23 Oct 2001 21:20:58 -0400:
JC> In other words, I
JC> can assume that if the key down event is not repeating, the
JC> event object will always return one character, which corresponds
JC> to the key the user pressed?
No. Search the archives, we discussed this not so long ago. In short
- Window Server might coalesce keys pressed shortly one after another into
one event;
- foreign accented characters might be expressed by a quite long unicode string;
- events can be generated programmatically, containing anything.
Even if it happens not to be the case now, it might start with any next OS
release or patch or even any new application or script. If API says its a
string, then it should be iterpreted as a string.
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
2K Development: email@hidden
http://www.2kdevelopment.cz
private email@hidden
http://www.ocs.cz/oc