Hello,

How can I limit the scope of a global keyboard shortcut?

I have the below code to navigate to my Startpage on pressing alt+h. This 
key combination works across the whole TW. However, I'd like to limit the 
scope where the action is triggered to a condition where a tiddler named X 
is in the top of the story river (so, make the key combination trigger this 
action only when tiddler X is open and/or top of story river).

The code:

<$navigator story="$:/StoryList" history="$:/HistoryList">
<$action-sendmessage $message="tm-close-other-tiddlers" $param="Startpage"/>
<$action-navigate $to="Startpage"/>
</$navigator>

The reason I'm asking is that I want to re-use the same key combinations 
across specific tiddlers to trigger different actions depending on a 
tiddler that's currently open/top of story river.

Many thanks!

Best,
Hubert

-- 
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/b8665dfd-4add-4aac-a4f1-b80e0ca72ae2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to