Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
how to give focus to a textfield in the "Custom UI" action
-
Is there a way to give focus to a textfield in the "Custom UI" action other than manually tapping to it if it pops up? That is, I would like to tell the action to let the cursor blink and to show the keyboard right from the start.
-
It's only possible via Python. E.g. if your text field's
name
is "textfield1", you could use a script action like this as part of an action workflow in a Custom UI:import workflow import ui root_view = workflow.get_view() textfield = root_view['textfield1'] textfield.begin_editing()
-
Great, thanks. That does the job.