At 10:40 AM -0500 2001/05/25, Jeff Wheeler wrote:
>I guess this really boils down to these questions: is a keycode shared
>between two different keys/events, only distinguishable by whether or not it
>is a virtual key?  That is, will I run into unexpected behavior if I assume
>that pageUpChar in the chr field is always pageUpChar, or is it really on
>pageUpChar when the key is (or isn't) virtual?

Although unlikely, virtual key code values MAY overlap real key code values. Virtual 
key codes always include the commandKeyMask modifier as a distinguishing 
characteristic of their "virtualness."


>If the "virtualness" of the key really is important to distinguish the key
>press, where can I find the table that identifies which key values are
>virtual?

There is no table. Instead, the macros TxtCharIsVirtual() or TxtGlueCharIsVirtual() 
should be used to distinguish virtual from real key events.

Regards,

Jim Schram
Palm Incorporated
Partner Engineering


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to