Description
It is proposed to introduce a new focus-tracking mechanism that tracks and restores the currently focussed input widget across refresh cycles. This would fix a long-standing issue with TiddlyWiki: the inability to edit fields of the current tiddler (eg, with <$edit field="myfield"/>
). By keeping track of a stack of previously focussed widgets this would also allow the implementation of edit toolbar buttons that operate on the current selection in the text box.
(It would also allow #1527 to be re-merged. The story there was that I added the ability to navigate to a tiddler in edit mode by clicking on it, matching an earlier change to the view mode behaviour. This was all done to make it possible to bring a tiddler to the front of the stacked view by clicking on it. Anyhow, the trouble with the change was that navigating to the tiddler caused it to be refreshed which lost the current focus and selection. With the change proposed here, the refresh would be harmless).