From 318f27ad1961bab1b6b151dcaf1f088a9b97b8f4 Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Sat, 13 Aug 2022 18:50:47 +0800 Subject: [PATCH] KeyHandler // Allow using symbol menu key to flip candidate pages. ... as long as they are not being occupied as selection keys. --- .../KeyHandler_HandleCandidate.swift | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Source/Modules/ControllerModules/KeyHandler_HandleCandidate.swift b/Source/Modules/ControllerModules/KeyHandler_HandleCandidate.swift index f369a266..ed2d5771 100644 --- a/Source/Modules/ControllerModules/KeyHandler_HandleCandidate.swift +++ b/Source/Modules/ControllerModules/KeyHandler_HandleCandidate.swift @@ -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