Skip to content

Commit

Permalink
[Fix] Caps and Shift should negate each other
Browse files Browse the repository at this point in the history
  • Loading branch information
LEOYoon-Tsaw committed Jun 7, 2024
1 parent 4c634f1 commit 4478f22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/MacOSKeyCodes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ struct SquirrelKeycode {

if let keychar = keychar, keychar.isASCII, let codeValue = keychar.unicodeScalars.first?.value {
// NOTE: IBus/Rime use different keycodes for uppercase/lowercase letters.
if keychar.isLowercase && (shift || caps) {
if keychar.isLowercase && (shift != caps) {
// lowercase -> Uppercase
return keychar.uppercased().unicodeScalars.first!.value
}
Expand Down

0 comments on commit 4478f22

Please sign in to comment.