MkKeys
Node to display Keyboard keys.¶
Description
Mostly used to explain shortcuts / commands for the keyboard.
Name | Children | Inherits |
---|---|---|
MkNode mknodes.basenodes.mknode Base class for everything which can be expressed as Markup. |
graph TD
94721311202288["mkkeys.MkKeys"]
94721308848336["mknode.MkNode"]
94721311766592["node.Node"]
140564252373184["builtins.object"]
94721308848336 --> 94721311202288
94721311766592 --> 94721308848336
140564252373184 --> 94721311766592
/home/runner/work/mknodes/mknodes/mknodes/basenodes/mkkeys/metadata.toml
[metadata]
icon = "fa6-regular:keyboard"
name = "MkKeys"
[requirements.extension."pymdownx.keys"]
[examples.single_key]
title = "Single key"
jinja = """
{{ "M" | MkKeys }}
"""
[examples.multiple_keys]
title = "Multiple keys"
jinja = """
{{ "M+k+K+e+y+s" | MkKeys }}
"""
[examples.modifiers]
title = "Modifiers"
jinja = """
{{ "Ctrl+A" | MkKeys }}
"""
[examples.as_list]
title = "As list"
jinja = """
{{ ["Alt", "X"] | MkKeys }}
"""
[output.markdown]
template = """
++{{ node.keys | join("+") }}++
"""