macos: send caps lock state to UCKeyTranslate

This commit is contained in:
Mitchell Hashimoto
2023-09-19 15:42:36 -07:00
parent 4b0bb2048c
commit ff74f27b99

View File

@ -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