@Mohammad Unfortunately I cannot think of a way to make this possible 
without editing the core templates. Ultimately the tiddler div does not 
have a tabindex property and cannot have focus.

There are features planned for the future that might make this possible.

On Thursday, December 3, 2020 at 12:50:01 PM UTC+1 Mohammad wrote:

> Thank you Saq!
>
> Really useful tips. I will go through and will share the results.
>
> One side question: now the scope of shortcuts is the div, can I extended 
> to whole tiddler! I mean where ever in the tiddler I press Right/Left arrow 
> I can get trigger action.
> If possible, I prefer to not overwrite the core viewtemplate.
>
> --Mohammad
>
> On Thursday, December 3, 2020 at 12:45:41 PM UTC+3:30 [email protected] 
> wrote:
>
>> Regarding focus a couple of other tricks that can help depending on the 
>> situation:
>> - use the tm-focus-selector message.
>> - use a <$edit-text> widget with focus="true" in the content. You can 
>> even hide it with CSS and it will grab focus on rendering. The entire 
>> Streams flow depends on this for example.
>>
>> On Thursday, December 3, 2020 at 10:13:00 AM UTC+1 Saq Imtiaz wrote:
>>
>>> Good morning Mohammad,
>>>
>>> The wikify, set and vars widgets all have in common that they set up 
>>> variables. However, whenever a variable changes, to make their descendant 
>>> widgets aware of the new value, they have to refresh all of their content.
>>>
>>> This can cause problems like loosing focus or even significantly slower 
>>> performance. Therefore use filtered widget attributes instead where 
>>> possible, or set up your variables as close as possible to the final place 
>>> where you want to use them (even if it might mean using two vars widgets 
>>> instead of one).
>>>
>>> Hope this helps,
>>> Saq
>>>
>>

-- 
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/02688dbc-0551-4581-b356-c078fd90f937n%40googlegroups.com.

Reply via email to