From 4283dd4b3aaadda20a47574b01969de0c892bc54 Mon Sep 17 00:00:00 2001 From: Federico Terzi Date: Sat, 2 May 2020 14:15:22 +0200 Subject: [PATCH] Add CAPS_LOCK handling on Windows --- src/context/windows.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/context/windows.rs b/src/context/windows.rs index ca643c2..9465faf 100644 --- a/src/context/windows.rs +++ b/src/context/windows.rs @@ -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, };