created: 20210429084127864 modified: 20210525130830934 tags: title: Keyboard Codes (Macros) type: text/vnd.tiddlywiki \define key-test-prefix() $:/key-test \define codeState() $:/state/code/$(currentTiddler)$ \define getText() <$vars tv-wikilinks="no"> * event-key: ''$(event-key)$'' * event-code: ''$(event-code)$'' * modifier: ''$(modifier)$'' \end \define pinDetails() <$action-setfield $tiddler=<> text="open"/> \end \define unpinDetails() <$action-deletetiddler $tiddler=<> /> \end \define toggleDetails(text) <$list filter="[!has[title]]" variable="ignore"> <$button class="tc-btn-invisible" actions=<> >$text$ {{$:/core/images/unfold-button}} <$list filter="[has[title]]" variable="ignore"> <$button class="tc-btn-invisible" actions=<> >$text$ {{$:/core/images/fold-button}} \end \define actionKey() <$action-setfield $tiddler="$:/key-test/action" text=<> /> \end \define showCode() ''<>'' <$list filter="[has[title]]" variable=ignore>
<$view />
\end
<$view />