KeyHandler // Allow using symbol menu key to flip candidate pages.

... as long as they are not being occupied as selection keys.
This commit is contained in:
ShikiSuen 2022-08-13 18:50:47 +08:00
parent 58728dd230
commit 318f27ad19
1 changed files with 12 additions and 0 deletions

View File

@ -347,6 +347,18 @@ extension KeyHandler {
}
}
// MARK: - Flipping pages by using symbol menu keys (when they are not occupied).
if input.isSymbolMenuPhysicalKey {
let updated: Bool =
input.isShiftHold ? ctlCandidateCurrent.showPreviousPage() : ctlCandidateCurrent.showNextPage()
if !updated {
IME.prtDebugIntel("66F3477B")
errorCallback()
}
return true
}
IME.prtDebugIntel("172A0F81")
errorCallback()
return true