more focus in field problems

Trevor DeVore lists at mangomultimedia.com
Mon Jun 23 09:23:41 EDT 2008


On Jun 23, 2008, at 4:00 AM, Nicolas Cueto wrote:

> ...
> 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?

You may have confused the engine. If the insertion point and focus  
border appear in and around "mainField" but no characters are entered  
when you type then the selectedField and the focusedObject are out of  
sync (they should always be the same if selectedField is not empty).

There used to be quite a few ways to confuse the engine in this regard  
but most of them were fixed in 2.9. It may be that you found another  
way of doing it. I have a plugin stack that logs the selectedField and  
focusedObject which makes it very easy to determine if this is the  
problem you are experiencing. Email me off-list if you would like to  
investigate further.

Regards,

-- 
Trevor DeVore
Blue Mango Learning Systems
www.bluemangolearning.com    -    www.screensteps.com



More information about the use-livecode mailing list