KeyHandler // Refactor handleInlineCandidateRotation().

This commit is contained in:
ShikiSuen 2022-06-30 23:54:52 +08:00
parent fa9fbdda1f
commit 9afe103d28
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 {