From ff74f27b99c0bee7f147323b0c883244d25e90a6 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 19 Sep 2023 15:42:36 -0700 Subject: [PATCH] macos: send caps lock state to UCKeyTranslate --- src/input/KeymapDarwin.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/src/input/KeymapDarwin.zig b/src/input/KeymapDarwin.zig index 5c8191a66..5ba7c6440 100644 --- a/src/input/KeymapDarwin.zig +++ b/src/input/KeymapDarwin.zig @@ -111,6 +111,7 @@ pub fn translate( .ctrl = if (mods.ctrl) true else false, .meta = if (mods.super) true else false, .shift = if (mods.shift) true else false, + .caps_lock = if (mods.caps_lock) true else false, }).ucKeyTranslate(); // We use 4 here because the Chromium source code uses 4 and Chrome