Thanks Matt

Actually I am writing a keyboard driver, and I want to replicate the
"shift+arrow " key functionality for selecting the word.
So I have to place the appropriate key in the keyboard queue. So I wanted
the key code for shift key

Marianne

----- Original Message -----
From: "Matt Graham" <[EMAIL PROTECTED]>
Newsgroups: palm-dev-forum
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Friday, September 05, 2003 12:12 AM
Subject: Re: Key Code


> "Marianne" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> >
> > Hi,
> >
> > I have a Sony Clie and I want to find the Key code for Shift key. I
tried
> by
> > using keyDownEvent and finding the chr field of keyDown Struct.. It was
> not
> > of any help..
> > Here is the code that I had written:
> >
> > case keyDownEvent:
> >    frmP = FrmGetActiveForm();
> >    ErrAlert(eventP->data.keyDown.chr);
> >    ErrAlert(eventP->data.keyDown.modifiers);
> >    handled = true;
> >    break;
>
> I don't think there is a Palm event for changing the shift state.  I
haven't
> been able to have one. I tried to find it and when I entered the shift
> stroke, instead of a keyDownEvent coming, there is no new event and the
> shift indicator is magically updated.
>
> If you need to set the shift indicator and you're really hard up for doing
> it, you may be able to fake it by doing penDown, penMove( up 20 ) and
penUp.
>
> Matt
>
>
>
> --
> 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/

Reply via email to