AW: keyup message is send with the arrowkey - why?

Tiemo Hollmann TB toolbook at kestner.de
Sun Nov 16 13:21:01 EST 2008


Hi Richard,
yes thats just my problem, that the keyup handler is also triggerd by the
arrowkey, what it shouldn't.
In this case I couldn't use the arrowkey handler, because in list fields the
new line isn't hilited, when the arrowkey handler is triggered.
Seems to be a Win bug, Thanks
Tiemo 
	
> Betreff: Re: keyup message is send with the arrowkey - why?
> 
> Tiemo Hollmann wrote:
> > I have a field where I have different actions on entering chars (a-z) or
> > using the arrowkeys. The events for the standard chars are handled in
> > keydown/up and the arrowkey in rawkedown/up. The rev docs tell me: "If
> the
> > key pressed is the Return, Tab, Backspace, Delete, or Enter key, an
> arrow
> > key, or a function key, no keyUp message is sent." But I am experiencing
> > something else. When pressing the arrowkey (down) in a field WITH
> content,
> > first the two rawkey messages are send and after that also a keyup with
> the
> > last char of the field content as the key is send. (which troubles me a
> > little bit).
> >
> > Is this a bug, a wrong doc or a wrong me?
> 
> keyDown and rawKeyDown are different messages. The former handles the
> keys except for those listed above for exclusion, and the latter handles
> the superset of all keys.
> 
> Why not just handle the arrowKey with an arrowKey handler?
> 
> --
>   Richard Gaskin
>   Managing Editor, revJournal
>   _______________________________________________________
>   Rev tips, tutorials and more: http://www.revJournal.com
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list