From 164705e6f3170f9facdc36878e3e51a0adfa8f26 Mon Sep 17 00:00:00 2001 From: zonble Date: Fri, 12 Nov 2021 01:15:06 +0800 Subject: [PATCH] Allows users to use left and right key to go to another candidate page in the vertical candidates list. This fixes #61. --- Source/InputMethodController.mm | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Source/InputMethodController.mm b/Source/InputMethodController.mm index cad6b88d..9dec8a06 100644 --- a/Source/InputMethodController.mm +++ b/Source/InputMethodController.mm @@ -1045,7 +1045,10 @@ public: return YES; } else { - [self beep]; + BOOL updated = [gCurrentCandidateController showPreviousPage]; + if (!updated) { + [self beep]; + } [self updateClientComposingBuffer:_currentCandidateClient]; return YES; } @@ -1060,7 +1063,10 @@ public: return YES; } else { - [self beep]; + BOOL updated = [gCurrentCandidateController showNextPage]; + if (!updated) { + [self beep]; + } [self updateClientComposingBuffer:_currentCandidateClient]; return YES; }