From dc4aca0ddbdaacad02f2580295130579d066febc Mon Sep 17 00:00:00 2001 From: odknt <4185305+odknt@users.noreply.github.com> Date: Fri, 10 May 2024 00:00:21 +0900 Subject: [PATCH] Switch to user dictionary editing when the end of a list of candidates has been reached --- src/skk.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/skk.cpp b/src/skk.cpp index 2909ff1..4040b71 100644 --- a/src/skk.cpp +++ b/src/skk.cpp @@ -636,7 +636,8 @@ bool SkkState::handleCandidate(KeyEvent &keyEvent) { skk_candidate_list_cursor_up(skkCandidates); keyEvent.filterAndAccept(); } else if (keyEvent.key().checkKeyList(*config.cursorDownKey)) { - skk_candidate_list_cursor_down(skkCandidates); + if (!skk_candidate_list_cursor_down(skkCandidates)) + return false; keyEvent.filterAndAccept(); } else if (keyEvent.key().checkKeyList(*config.prevPageKey)) { skk_candidate_list_page_up(skkCandidates);