Setting focus after tab
bobsneidar at iotecdigital.com
Wed Aug 16 12:30:56 EDT 2023
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?
More information about the use-livecode