HI Saq,
Many thanks for your solution. Works great!
In my original code I used $vars + filter {{{}}} instead of $wikify but it
also does not work see
\define stateTid() tt
\define myTag() HelloThere
\define next() <$action-setfield $tiddler=<<stateTid>>
text=<<nextTid>> />
\define previous() <$action-setfield $tiddler=<<stateTid>>
text=<<previousTid>> />
<$vars currentTid ={{{ [<stateTid>get[text]] ~[tag<myTag>first[]] }}} >
<$vars previousTid ={{{ [tag<myTag>before<currentTid>] }}}
nextTid ={{{ [tag<myTag>after<currentTid>] }}} >
<$keyboard key="right" actions=<<next>> >
<$keyboard key="left" actions=<<previous>> >
<div style="border:2px solid orange; padding:5px; min-height:128px"
tabindex=1>
{{tt}}
</div>
</$keyboard>
</$keyboard>
</$vars>
</$vars>
But your solution did the trick!
The <$wikify> forces all content within it to be refreshed, and your div
> looses focus.
>
> \define stateTid() state-tiddler
> \define myTag() HelloThere
>
>
> \define next()
> <$vars currentTid={{{[<stateTid>get[text]]}}}>
> <$action-setfield $tiddler=<<stateTid>> text={{{
> [tag<myTag>after<currentTid>] ~[tag<myTag>first[]]}}} />
> </$vars>
> \end
>
> \define previous()
> <$vars currentTid={{{[<stateTid>get[text]]}}}>
> <$action-setfield $tiddler=<<stateTid>> text={{{
> [tag<myTag>before<currentTid>] ~[tag<myTag>last[]] }}} />
> </$vars>
> \end
>
> <$keyboard key="right" actions=<<next>> >
> <$keyboard key="left" actions=<<previous>> >
> <div style="border:2px solid orange; padding:5px; min-height:128px"
> tabindex=1>
> * Current tid: <$text text={{{ [<stateTid>get[text]] }}}>/>
>
> </div>
> </$keyboard>
> </$keyboard>
>
>
> <$list filter="[tag<myTag>]"/>
>
> شب بخیر
>
:-) :-)
It is 9:25 A.M now here, so Good Morning!
Cheers
Mohammad
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/cb968d26-1ed0-4228-92d0-fef7c4c6c800n%40googlegroups.com.