You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: adafruit_hid/keyboard_layout_base.py
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -37,12 +37,15 @@ class KeyboardLayoutBase:
37
37
RIGHT_ALT_CODE=0xE6
38
38
"""The ALTGR keycode, to avoid dependency to the Keycode class."""
39
39
ASCII_TO_KEYCODE= ()
40
-
"""Bytes string of keycodes for low ASCII characters, indexed by the ASCII value. Keycodes use the `SHIFT_FLAG` if needed. Dead keys are excluded by assigning the keycode 0."""
40
+
"""Bytes string of keycodes for low ASCII characters, indexed by the ASCII value.
41
+
Keycodes use the `SHIFT_FLAG` if needed.
42
+
Dead keys are excluded by assigning the keycode 0."""
41
43
HIGHER_ASCII= {}
42
44
"""Dictionary that associates the ord() int value of high ascii and utf8 characters
43
45
to their keycode. Keycodes use the `SHIFT_FLAG` if needed."""
44
46
NEED_ALTGR=""
45
-
"""Characters in `ASCII_TO_KEYCODE` and `HIGHER_ASCII` that need the ALTGR key pressed to type."""
47
+
"""Characters in `ASCII_TO_KEYCODE` and `HIGHER_ASCII` that need
48
+
the ALTGR key pressed to type."""
46
49
COMBINED_KEYS= {}
47
50
"""
48
51
Dictionary of characters (indexed by ord() value) that can be accessed by typing first
0 commit comments