Hi Mat, look at the Advanced search Keyboard Shortcut <https://tiddlywiki.com/prerelease/#%24%3A%2Fcore%2Fui%2FKeyboardShortcuts%2Fadvanced-search> in the current prerelease, it uses the tm-focus-selector message by using a [data-tiddler-title="..."] selector,
It should work the same way using an id The docs for widgetmessage tm-focus-selector <https://tiddlywiki.com/prerelease/#WidgetMessage%3A%20tm-focus-selector> reads > > The tm-focus-selector message sets the focus to the DOM element > identified by the selector in the param parameter. > NameDescription > param Selector identifying the DOM element to be focussed > > how do I know what DOM element it is? And exactly how to I give this as an > argument ( param="????" ) > > Is it possible to use an ID attribute for this? If "no", would it make > sense to propose this as an option for the widgetmessage? (I would think > more people can create CSS IDs than manage DOM elements.) > > What I'm trying to achieve is setting focus on a edit-text field after > I've set another thing. > > <:-) > -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywikidev/cc962bd9-d2e9-49a7-abed-9a6c39962fd8%40googlegroups.com.
