more focus in field problems

Nicolas Cueto niconiko at gmail.com
Mon Jun 23 04:00:54 EDT 2008


In the open card handler of a stack I have this:

on openCard
    go invisible stack "someSubstack" as palette
    resetCardObjects
    focus on field "mainField"
    select after the last char of field "mainField"
end openCard



Along with that, in the script of field "mainField"
I have this:

on rawKeyUp tTheKey
   switch tTheKey
   ...
end rawKeyUp



My understanding is that, since the focus is
set to "mainField" -- and, in addition, because
of the "select" command (thank you to Scott
Morrow for that suggestion) -- then when
I hit a key on the keyboard "rawKeyUp"
handler in field "mainField" should be
receiving that keyUp message.

But, it's not.

If it means anything, the insertion cursor
is flashing in field "mainField".

Any guesses as to what's wrong?

Thank you.

--
Nicolas Cueto



More information about the use-livecode mailing list