Skip to content

Commit 6291a27

Browse files
committed
keyboardModifiers: split modifiers and special keys
Language/Functions/USB/Keyboard/keyboardModifiers.adoc contains a table of key macros described as "modifier keys". Most entries in this table, however, are not modifiers: arrow keys, function keys, etc. Split the table in two: one table for the actual modifiers, and another one for all the other key macros, collectively described as "special keys".
1 parent 4ca291e commit 6291a27

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

Language/Functions/USB/Keyboard/keyboardModifiers.adoc

+17-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
2-
title: Keyboard Modifiers
2+
title: Keyboard Modifiers and Special Keys
33
---
44

55

66

77

8-
= Keyboard Modifiers
8+
= Keyboard modifiers and special keys
99

1010

1111
// OVERVIEW SECTION STARTS
@@ -16,9 +16,11 @@ title: Keyboard Modifiers
1616
=== Description
1717
The `Keyboard.write()` and `Keyboard.press()` and `Keyboard.release()` commands don’t work with every possible ASCII character, only those that correspond to a key on the keyboard. For example, backspace works, but many of the other non-printable characters produce unpredictable results. For capital letters (and other keys), what’s sent is shift plus the character (i.e. the equivalent of pressing both of those keys on the keyboard).
1818
[%hardbreaks]
19-
A modifier key is a special key on a computer keyboard that modifies the normal action of another key when the two are pressed in combination.
20-
[%hardbreaks]
2119
For more on ASCII values and the characters or functions they represent, see http://www.asciitable.com/[asciitable.com]
20+
21+
[float]
22+
=== Keyboard modifiers
23+
A modifier key is a special key on a computer keyboard that modifies the normal action of another key when the two are pressed in combination.
2224
[%hardbreaks]
2325
For multiple key presses use link:../keyboardpress[Keyboard.press]()
2426
[%hardbreaks]
@@ -37,6 +39,17 @@ The definitions of the modifier keys are listed below:
3739
|KEY_RIGHT_SHIFT |0x85 |133
3840
|KEY_RIGHT_ALT |0x86 |134
3941
|KEY_RIGHT_GUI |0x87 |135
42+
|===
43+
44+
[float]
45+
=== Special keys
46+
These are four keys within the alphanumeric cluster of a keyboard (Tab, Caps Lock, Backspace and Return) as well as all keys from outside that cluster (Escape, function keys, Home, End, arrow keys...).
47+
48+
The following special keys have been defined:
49+
50+
|===
51+
|Key |Hexadecimal value |Decimal value
52+
4053
|KEY_UP_ARROW |0xDA |218
4154
|KEY_DOWN_ARROW |0xD9 |217
4255
|KEY_LEFT_ARROW |0xD8 |216

0 commit comments

Comments
 (0)