I was using this code to create a keyboard shortcut for a reveal widget as mentioned in this discussion for invoking a sidetabs to the right side of the tiddler body.
Today, based on this discussion, I changed the code for the reveal widget as mentioned here. Code used is given below.
<$let stateID={{{ [[$:/temp/abc/]addsuffix{!!title}addsuffix<qualify>] }}}>
<$reveal type="nomatch" state=<<stateID>> text="show">
<$button set=<<stateID>> setTo="show" class="mybutton" >
{{$:/core/images/info-button}}
</$button>
</$reveal>
<$reveal type="match" state=<<stateID>> text="show">
<$button set=<<stateID>> setTo="hide" class="mybutton" >
{{$:/core/images/info-button}}
</$button>
<$list filter="[all[current]!is[system]!is[shadow]!tag[$:/tags/SideBar]!tag[Journal]!tag[$:/tags/ViewTemplate]!tag[$:/tags/Stylesheet]!tag[tweaks]!TheBrain[no]!has[page-cover]]">
<div class="rightside">
{{||Bottom Tabs for viewtemplate - without folding}}
</div>
<style>
[data-tiddler-title='{{!!title}}'] .tc-tiddler-body {
border:1px solid transparent;
width:50%;
}
[data-tiddler-title='{{!!title}}'] .rightside {
border:1px solid transparent;
width:50%;
position: relative;
float:right;
right:0;
}
</style>
</$list>
</$reveal>
<style>
.mybutton {float:right}
.mybutton {margin-top: -25px}
</style>
So now the keyboard shortcut have stopped working.
As mentioned before by @EricShulman in one of the earlier post
I wil have to use a filter with [prefix[StateTiddlerTitle]]
to modify the code used for keyboard shortcut.
How to modify the code given below to include the prefix
part ?
<$action-setfield $tiddler="$:/state/SampleReveal2" text={{{ [{$:/state/SampleReveal2}match[hide]then[show]else[hide]] }}}/>