Setting focus after tab

Bob Sneidar bobsneidar at iotecdigital.com
Wed Aug 16 12:49:16 EDT 2023


<sigh> never mind. I just tested this with a new stack and it works the way it’s supposed to. I must have a script that is doing this. 

Bob S


> On Aug 16, 2023, at 9:30 AM, Bob Sneidar <bobsneidar at iotecdigital.com> wrote:
> 
> Hi all. 
> 
> Something curious that has been going on for a while. When I tab from field 1 to field 2, I have code that populates field 2 in some circumstances, then checks to see if field 2 is empty, then focuses on field 2 if it is, or fiend 3 if it’s not. In other words I am trying to focus on the next empty field. 
> 
> This never works if I am tabbing, BUT if I set a breakpoint and step through the code, IT DOES WORK! I think this is because the tab-to-next-field native LC code is executing AFTER my code runs. Exit to top does not have an effect. 
> 
> Anyone else seeing this behavior? 
> 
> Bob S
> 



More information about the use-livecode mailing list