Hi Eric, You said at some point that when the shift key is pressed you _do_ get a Nil - event, so how's this:
- With the GrfGetState function you can retreive the current shift state. You can save the last state in a variable. - Now when you get a Nil-event, you test wether the shiftstate has changed, if it has, you know the shift key has been pressed. Good luck, Caspar -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eric Yun Sent: Thursday, April 08, 2004 5:42 PM To: Palm Developer Forum Subject: hard key pressed events--for those palms with hardware keyboard I set breakpoints in codewarrior to check the event type and data when a hard key is pressed. Most hard keys will have a keyDownEvent when they are pressed. For example, the when hard key "a" is pressed, the event type is KeyDownEvent, and the chr is 'a'. but some hard keys like "Caps", there is no KeyDownEvent (actually I found there are events, but all events are nilEvent. Weird!?). I totally have no idea how to capture these events.... eric *********** REPLY SEPARATOR *********** On 07/04/2004 at 3:48 PM Tim Kostka wrote: >If you want to trap hard key events, you can trap the keyDownEvent. The >chr >field will contain the value of the key pressed (ie: 'a' or 'A' for the a >key, etc). By doing this, the program would respond the same way to a >letter entered into the graffiti area or by a hard key press (of a letter >key). If you want to trap other keys, you can do so the same way, but you >need to find out the chr value for them. You can write a small program to >do this, or use published values depending on the keys you want to trap. > >-- >Tim Kostka >http://www.nuprograms.com > > >"Eric Yun" <[EMAIL PROTECTED]> wrote in message >news:[EMAIL PROTECTED] >hello forum, > >how can a software identify which hard key is pressed when the user is >using >tungsten W (there is a hardware keyboard). I searched >pluggedin.palmone.com, >but I did not find any doc for this topic. > >Thanks all, > >Eric > > > > >-- >For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
