keyup message is send with the arrowkey - why?

Richard Gaskin ambassador at fourthworld.com
Sun Nov 16 12:52:05 EST 2008


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



More information about the use-livecode mailing list