Keyboard Shortcuts Priority

55 views
Skip to first unread message

Mohammad

unread,
Jun 29, 2019, 11:06:04 PM6/29/19
to tiddl...@googlegroups.com
Is there any priority for global keyboard shortcuts in Tiddlywiki?

Assume [Down Arrow] key is set to go to the next tiddler in story river!
Also assume the the same shortcut is defined to reveal an element (like a text or image) using transclusion in a tiddler!

Now the question is:
 When you are in a tiddler have the reveal widget with [Down Arrow] shortcut how one can set the priority 
to first reveal the element and after that (send press the shortcut [Arrow Down]) go to the next tiddler.
In other words:
 - First  reveal
 - Second go to next tiddler


--Mohammad

TonyM

unread,
Jun 30, 2019, 1:06:53 AM6/30/19
to TiddlyWiki
Mohammad,

can you make what happens with the shortcut smarter so it knows what to do next? Like jump to next reveal but with none left jump to next thing? Perhaps the last reveal is different and it does the next thing.

tony

Mohammad

unread,
Jun 30, 2019, 1:24:16 PM6/30/19
to TiddlyWiki
Tony,
 I actually want to use the same shorcut for several actions! but I wish to perform actions in order!

TonyM

unread,
Jun 30, 2019, 8:32:51 PM6/30/19
to TiddlyWiki
Mohammad

I understand that. The code pattern I am suggesting is that on down arrow it may try to do three different things yet only one of these things actually works in different circumstances. The result will be the first thing until the second thing is true the second thing until the third is true and the third can reset the first and second after its action. The third can't be done unless first and second are done.

Regards
Tony

Mohammad

unread,
Jun 30, 2019, 10:22:37 PM6/30/19
to TiddlyWiki
Thanks Tony
Yes, that's quite true. It is the case I try to do
Reply all
Reply to author
Forward
0 new messages