Add CAPS_LOCK handling on Windows

This commit is contained in:
Federico Terzi 2020-05-02 14:15:22 +02:00
parent ff7d078335
commit 4283dd4b3a

View File

@ -161,7 +161,8 @@ extern fn keypress_callback(_self: *mut c_void, raw_buffer: *const u16, len: i32
(0x12, 2) => Some(RIGHT_ALT),
(0x11, 1) => Some(LEFT_CTRL),
(0x11, 2) => Some(RIGHT_CTRL),
(0x08, _) => Some(BACKSPACE),
(0x08, _) => Some(BACKSPACE),
(0x14, _) => Some(CAPS_LOCK),
_ => None,
};