title: $:/core/ui/ControlPanel/KeyboardShortcuts tags: $:/tags/ControlPanel caption: {{$:/language/ControlPanel/KeyboardShortcuts/Caption}} \define lingo-base() $:/language/ControlPanel/KeyboardShortcuts/ \define new-shortcut(title) \whitespace trim
<$edit-shortcut tiddler="$title$" placeholder={{$:/language/ControlPanel/KeyboardShortcuts/Add/Prompt}} focus="true" style="width:auto;"/> <$button> <> <$action-listops $tiddler="$(shortcutTitle)$" $field="text" $subfilter="[{$title$}]" /> <$action-deletetiddler $tiddler="$title$" />
\end \define shortcut-list-item(caption) \whitespace trim <>
<$button popup=<> class="tc-btn-invisible"> {{$:/core/images/edit-button}} <$macrocall $name="displayshortcuts" $output="text/html" shortcuts={{$(shortcutTitle)$}} prefix="" separator=" " suffix=""/> <$reveal state=<> type="popup" position="below" animate="yes">
<$list filter="[list[$(shortcutTitle)$!!text]sort[title]]" variable="shortcut" emptyMessage="
//<>//
">
<$button class="tc-btn-invisible" tooltip={{$:/language/ControlPanel/KeyboardShortcuts/Remove/Hint}}> <$action-listops $tiddler="$(shortcutTitle)$" $field="text" $subfilter="+[remove]" /> {{$:/core/images/close-button}} <$macrocall $name="displayshortcuts" $output="text/html" shortcuts=<>/>

<$macrocall $name="new-shortcut" title=<>/>
\end \define shortcut-list(caption,prefix) \whitespace trim <$list filter="[[$prefix$$(shortcutName)$]]" variable="shortcutTitle"> <> \end \define shortcut-editor() \whitespace trim <> <> <> <> <> <> <> \end \define shortcut-preview() <$macrocall $name="displayshortcuts" $output="text/html" shortcuts={{$(shortcutPrefix)$$(shortcutName)$}} prefix="" separator=" " suffix=""/> \end \define shortcut-item-inner() \whitespace trim <$reveal type="nomatch" state=<> text="open"> <$button class="tc-btn-invisible"> <$action-setfield $tiddler=<> $value="open" /> {{$:/core/images/right-arrow}} <$reveal type="match" state=<> text="open"> <$button class="tc-btn-invisible"> <$action-setfield $tiddler=<> $value="close" /> {{$:/core/images/down-arrow}} ''<$text text=<>/>'' <$transclude tiddler="$:/config/ShortcutInfo/$(shortcutName)$"/> <$list filter="$:/config/shortcuts/ $:/config/shortcuts-mac/ $:/config/shortcuts-not-mac/ $:/config/shortcuts-linux/ $:/config/shortcuts-not-linux/ $:/config/shortcuts-windows/ $:/config/shortcuts-not-windows/" variable="shortcutPrefix"> <> <$set name="dropdownState" value={{$(dropdownStateTitle)$}}> <$list filter="[match[open]]" variable="listItem"> <> \end \define shortcut-item() \whitespace trim <$set name="dropdownStateTitle" value=<>> <> \end \whitespace trim <$list filter="[all[shadows+tiddlers]removeprefix[$:/config/ShortcutInfo/]]" variable="shortcutName"> <>