Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/McBopomofo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down