Skip to content

Commit

Permalink
fix(chord_composer): first key missing from raw input
Browse files Browse the repository at this point in the history
  • Loading branch information
lotem committed Jan 15, 2022
1 parent f128a27 commit 33d85ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rime/gear/chord_composer.cc
Expand Up @@ -127,7 +127,7 @@ ProcessResult ChordComposer::ProcessKeyEvent(const KeyEvent& key_event) {
int ch = key_event.keycode();
if (!is_key_up && ch >= 0x20 && ch <= 0x7e) {
// save raw input
if (engine_->context()->IsComposing() || !raw_sequence_.empty()) {
if (!engine_->context()->IsComposing() || !raw_sequence_.empty()) {
raw_sequence_.push_back(ch);
DLOG(INFO) << "update raw sequence: " << raw_sequence_;
}
Expand Down

0 comments on commit 33d85ad

Please sign in to comment.