Usage:
When an $edit-text widget has focus="yes", you can use an additional parameter, focusSelect, to control how initial selection is applied:
focusSelect="yes" (default) - Selects the entire edit control contents
focusSelect="start" - No selection is made. The cursor is placed at the start of the edit control contents
focusSelect="no" - No selection is made. The cursor is placed at the end of the edit control contents
focusSelect="end" - No selection is made. The cursor is placed at the end of the edit control contents
Note that this new handling is only applied if the $edit-text widget is of type âtextâ (default), âsearchâ, âURLâ, âtelâ or âpasswordâ. For any other specified type or any unrecognized value of focusSelect, the current behavior is applied (i.e., the entire edit control contents is selected if focus="yes" is used)
This is separate from the focusSelect parameter handling, and can currently be achieved without any TWCore code changes by manually clearing the text field content in $:/config/AutoFocus (or setting the text to any non-existent field name, e.g., ânoneâ).
This will be really good for use with custom âNew Tiddler titlesâ creating a lot of tiddlers with the same prefix and you just type the âunique suffixâ
I just went to make use of this and wonder if my use case is catered for or not?
After Projectify creates a todo item, I am using action create tiddler widget I use the following to open the tiddler for edit (a second add/edit button); <$action-sendmessage $message="tm-edit-tiddler" $param={{$:/temp/projectify/new-todo}}/>
In this case I would like the text field given the focus as the title is already determined, but I donât want this for all edit tiddlers because I usually want to rename the tiddler, ie focus on title.
One would think WidgetMessage: tm-focus-selector may be the answer but the documentation is insufficient and no examples given.