Skip to content

Commit

Permalink
chore: simplify Set intersection
Browse files Browse the repository at this point in the history
  • Loading branch information
eagleoflqj committed Jun 8, 2024
1 parent 4ea42c8 commit fd96600
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/controller.swift
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,7 @@ class FcitxInputController: IMKInputController {
if mods.rawValue == 0 {
ignoreRelease = false
}
} else if change.contains(.shift) || change.contains(.control) || change.contains(.command)
|| change.contains(.option) || change.contains(.capsLock)
{
} else if !change.isDisjoint(with: [.shift, .control, .command, .option, .capsLock]) {
handled = processKey(0, modsVal, code, isRelease)
}
lastModifiers = mods
Expand Down

0 comments on commit fd96600

Please sign in to comment.