mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 01:00:29 +08:00
supported menu and numlock keys
This commit is contained in:
parent
b8b9bbe53a
commit
b7419ecb3a
@ -82,8 +82,10 @@ INLINE KeyboardKeycode keymap(uint8_t code) {
|
||||
case 80: return KEY_LEFT_GUI;
|
||||
case 78: return KEY_LEFT_SHIFT;
|
||||
case 13: return KEY_M;
|
||||
case 88: return KEY_MENU;
|
||||
case 42: return KEY_MINUS;
|
||||
case 14: return KEY_N;
|
||||
case 87: return KEY_NUM_LOCK;
|
||||
case 15: return KEY_O;
|
||||
case 16: return KEY_P;
|
||||
case 72: return KEY_PAGE_DOWN;
|
||||
|
||||
@ -20,7 +20,7 @@
|
||||
# ========================================================================== #
|
||||
|
||||
|
||||
# https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/code
|
||||
# https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/code/code_values
|
||||
# https://github.com/NicoHood/HID/blob/master/src/KeyboardLayouts/ImprovedKeylayouts.h
|
||||
# https://gist.github.com/MightyPork/6da26e382a7ad91b5496ee55fdc73db2
|
||||
|
||||
@ -113,8 +113,9 @@ AltRight 83 KEY_RIGHT_ALT 0x40 m
|
||||
MetaRight 84 KEY_RIGHT_GUI 0x80 m
|
||||
Pause 85 KEY_PAUSE 0x48 -
|
||||
ScrollLock 86 KEY_SCROLL_LOCK 0x47 -
|
||||
NumLock 87 KEY_NUM_LOCK 0x53 -
|
||||
ContextMenu 88 KEY_MENU 0x65 -
|
||||
# KEY_NON_US_NUM
|
||||
# KEY_NUM_LOCK
|
||||
# KEYPAD_DIVIDE
|
||||
# KEYPAD_MULTIPLY
|
||||
# KEYPAD_SUBTRACT
|
||||
@ -132,5 +133,3 @@ ScrollLock 86 KEY_SCROLL_LOCK 0x47 -
|
||||
# KEYPAD_0
|
||||
# KEYPAD_DOT
|
||||
# KEY_NON_US
|
||||
# KEY_APPLICATION
|
||||
# KEY_MENU
|
||||
|
||||
@ -389,4 +389,12 @@ KEYMAP: Dict[str, Key] = {
|
||||
serial=SerialKey(code=86),
|
||||
otg=OtgKey(code=71, is_modifier=False),
|
||||
),
|
||||
"NumLock": Key(
|
||||
serial=SerialKey(code=87),
|
||||
otg=OtgKey(code=83, is_modifier=False),
|
||||
),
|
||||
"ContextMenu": Key(
|
||||
serial=SerialKey(code=88),
|
||||
otg=OtgKey(code=101, is_modifier=False),
|
||||
),
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user