Skip to content

Commit dbd113f

Browse files
ctruedenmattxwang
authored andcommitted
editing/keys: document the mouse action codes
1 parent be22e3e commit dbd113f

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

_pages/editing/keys.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,13 @@ The syntax for talking about a key such as {% include key key="enter" %} is:
1313
{% raw %}{% include key key="enter" %}{% endraw %}
1414
```
1515

16-
See the [list of key codes](#list-of-key-codes) below for a complete summary of
17-
available key codes.
16+
You can describe mouse actions such as {% include key key="right click" %}, too:
17+
```liquid
18+
{% raw %}{% include key key="right click" %}{% endraw %}
19+
```
20+
21+
See the [list of input codes](#list-of-input-codes) below for a complete
22+
summary of available key and mouse codes.
1823

1924
## Key combinations
2025

@@ -75,9 +80,9 @@ to do something different:
7580
{% endcapture %}
7681
{% include editing/example code=custom-chain-symbols-code result=custom-chain-symbols-result %}
7782

78-
## List of key codes
83+
## List of input codes
7984

80-
{% assign keys = "Menu, Hyper, Meta, Windows, Command, Super, Fn, AltGr, Ctrl, Ctlcmd, Alt, Option, Shift, Num Lock, Caps Lock, Scroll Lock, Print Screen, Eject, Enter, Enter2, Backspace, Delete, Insert, Esc, Right, Left, Up, Down, Page Up, Page Down, Home, End, Tab, Space Bar, Clear, F1, ..., F20, A, ..., Z, Bar, Backslash" | split: ", " -%}
85+
{% assign keys = "Menu, Hyper, Meta, Windows, Command, Super, Fn, AltGr, Ctrl, Ctlcmd, Alt, Option, Shift, Num Lock, Caps Lock, Scroll Lock, Print Screen, Eject, Enter, Enter2, Backspace, Delete, Insert, Esc, Right, Left, Up, Down, Page Up, Page Down, Home, End, Tab, Space Bar, Clear, F1, ..., F20, A, ..., Z, Bar, Backslash, Left Click, Middle Click, Right Click, Double Click, Left Drag, Middle Drag, Right Drag, Mouse Wheel, Mouse Wheel Up, Mouse Wheel Down" | split: ", " -%}
8186
{::nomarkdown}
8287
<table>
8388
<tr>

0 commit comments

Comments
 (0)