KeyHandler // Refactor handleInlineCandidateRotation().

This commit is contained in:
ShikiSuen 2022-06-30 23:54:52 +08:00
parent 2367e91840
commit d4d9295482
1 changed files with 1 additions and 5 deletions

View File

@ -798,11 +798,7 @@ extension KeyHandler {
if candidates[0] == currentValue { if candidates[0] == currentValue {
/// ///
/// ///
if reverseModifier { currentIndex = reverseModifier ? candidates.count - 1 : 1
currentIndex = candidates.count - 1
} else {
currentIndex = 1
}
} }
} else { } else {
for candidate in candidates { for candidate in candidates {