Hi Michael,
Your current code in the input field takes the focus away from the second list field because of the
You can avoid setting the focus to listField1 with this code that does not take focus away from the second listfield when clicking on a line in it
Code: Select all
on closeField
updateTitle
end closeField
on updateTitle
put me into line 4 of fld listField1
--select line 4 of fld listField1
set the hilitedLine of field listField1 to 4
end updateTitle
I find it a bit unusual to do data entry using "closeField". I would do the data entry on for example using
Code: Select all
on returnInField
updateTitle
end returnInField
on enterInfield
returnInField
end enterInfield
That way data entry is done and does not interfere with focus etc.
And the user sees right away what has changed (typos included) and not after the user has done anything that triggers "closeField".
Unless of course you have a special reason to use "closeField" as trigger.
Kind regards
Bernd