From f865e770540d249e9855f65151d59fe8da0f2ed7 Mon Sep 17 00:00:00 2001 From: Lukhnos Liu Date: Wed, 17 Dec 2025 09:05:04 -0800 Subject: [PATCH] Always handles Shift+[1-9] for Associated Phrases. Shift+[1-9] keys were not handled when Shift+Enter was disabled for associated phrases. With the v2 associated phrases always prompting when such phrases are available, those keys need to be handled. --- src/McBopomofo.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/McBopomofo.cpp b/src/McBopomofo.cpp index 9a6c90c..7224552 100644 --- a/src/McBopomofo.cpp +++ b/src/McBopomofo.cpp @@ -808,10 +808,9 @@ bool McBopomofoEngine::handleCandidateKeyEvent( bool shouldUseShiftKey = associatedPhrasesPlain != nullptr || - (associatedPhrases != nullptr && associatedPhrases->useShiftKey && - config_.shiftEnterEnabled.value()); + (associatedPhrases != nullptr && associatedPhrases->useShiftKey); - // Plain Bopomofo and Associated Phrases. + // Plain Bopomofo, Associated Phrases, and Number Input. if (shouldUseShiftKey || numberInput != nullptr) { int code = origKey.code(); // Shift-[1-9] keys can only be checked via raw key codes. The Key objects