From fbf7e120c6830d8d04097309e715bcab63dcca67 Mon Sep 17 00:00:00 2001 From: Damien George Date: Wed, 3 Jul 2024 17:18:49 +1000 Subject: [PATCH] usb-device-keyboard: Fix ; and ` keycode names. They should be named as the un-shifted version. Signed-off-by: Damien George --- micropython/usb/usb-device-keyboard/manifest.py | 2 +- micropython/usb/usb-device-keyboard/usb/device/keyboard.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/micropython/usb/usb-device-keyboard/manifest.py b/micropython/usb/usb-device-keyboard/manifest.py index 923535c4..5a2ff307 100644 --- a/micropython/usb/usb-device-keyboard/manifest.py +++ b/micropython/usb/usb-device-keyboard/manifest.py @@ -1,3 +1,3 @@ -metadata(version="0.1.0") +metadata(version="0.1.1") require("usb-device-hid") package("usb") diff --git a/micropython/usb/usb-device-keyboard/usb/device/keyboard.py b/micropython/usb/usb-device-keyboard/usb/device/keyboard.py index c42405fc..22091c50 100644 --- a/micropython/usb/usb-device-keyboard/usb/device/keyboard.py +++ b/micropython/usb/usb-device-keyboard/usb/device/keyboard.py @@ -163,9 +163,9 @@ class KeyCode: CLOSE_BRACKET = 48 # ] } BACKSLASH = 49 # \ | HASH = 50 # # ~ - COLON = 51 # ; : + SEMICOLON = 51 # ; : QUOTE = 52 # ' " - TILDE = 53 # ` ~ + GRAVE = 53 # ` ~ COMMA = 54 # , < DOT = 55 # . > SLASH = 56 # / ?