Hi Stephan, Tobias On Wed, Jan 7, 2015 at 8:51 AM, Tobias Beer <[email protected]> wrote:
> Why not finally add the ability to tell an edit widget to only update its >> target upon focus loss or upon "enter-key"? >> > I already had an implementation of it, I seem to remember. "Lazy edit" or >> something like that. >> > The trouble is that there's nowhere for the edit widget to save the accumulated text if it is deleted and refreshed. The accumulated text in the DOM breaks the rule that the entire state of the system should be persisted in the tiddler store. > Another way may be some attribute that specifically tells the widget not to force an update on currentTiddler on edit, which in a simple case as this may actually not be required. Generally, the problem is caused not by the edit-text widget deciding to refresh itself, but rather by an ancestor widget deleting and recreating their children, including the edit-text widget. Best wishes Jeremy > > ENTER sounds quite reasonable to me, especially when in view-mode. > There could be a simple *enter=true* attribute to the $edit widget > which asks for that key so as to commit anything for a text input. > > I guess this could probably also be achieved with some sort of keyboard > widget > that captures that ENTER key being pressed and then > some action-widget to update the field based on the input value. > > Best wishes, Tobias. > -- Jeremy Ruston mailto:[email protected] -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.

