I don't believe I have a good handle on this yet. When processing the
keyDownEvent, when is it important to check whether a key value is a virtual
key also?
For instance, I am watching for the pageUpChr and pageDownChr codes
(generated by the hardware scroll buttons) in order to scroll a list up or
down. Should I check for virtual keys, and then switch on the key code? Or
is it sufficient to merely switch on the key code?
Similarly, I want to check for the Sony jog dial scrolling, by monitoring
keyDownEvents and watching for specify values defined by Sony. Their
example explicitly shows checking that it is a virtual key, before checking
the value for their special key codes. Is this because their special values
conflict with other values, and are distinguished by whether or not the key
is virtual?
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?
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?
Confused...
Jeff
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/