Update docs/docs/keymaps/list-of-codes.mdx

Co-authored-by: Cem Aksoylar <caksoylar@users.noreply.github.com>
This commit is contained in:
Nicolas Munnich 2024-08-17 09:01:37 +02:00 committed by GitHub
parent 86fcf7f551
commit e4adb1b40c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11,6 +11,7 @@ import Table from "@site/src/components/codes/Table";
Take extra notice of the spelling of the keycodes, especially the shorthand spelling. Take extra notice of the spelling of the keycodes, especially the shorthand spelling.
Otherwise, it will result in an elusive parsing error! Otherwise, it will result in an elusive parsing error!
::: :::
:::info[Keyboard vs. Consumer keycodes] :::info[Keyboard vs. Consumer keycodes]
In the below tables, there are keycode pairs with similar names where one variant has a `K_` prefix and another `C_`. In the below tables, there are keycode pairs with similar names where one variant has a `K_` prefix and another `C_`.
These variants correspond to similarly named usages from different [HID usage pages](https://usb.org/sites/default/files/hut1_2.pdf#page=16), These variants correspond to similarly named usages from different [HID usage pages](https://usb.org/sites/default/files/hut1_2.pdf#page=16),
@ -19,6 +20,7 @@ namely the "keyboard/keypad" and "consumer" ones respectively.
In practice, some OS and applications might listen to only one of the variants. In practice, some OS and applications might listen to only one of the variants.
You can use the values in the compatibility columns below to assist you in selecting which one to use. You can use the values in the compatibility columns below to assist you in selecting which one to use.
::: :::
This is the reference page for keycodes used by behaviors. Use the table of contents (on the right or the top) for easy navigation. This is the reference page for keycodes used by behaviors. Use the table of contents (on the right or the top) for easy navigation.
<OsLegend /> <OsLegend />