Skip to content

Commit aab5eb8

Browse files
committed
fix(chord_composer): letters with modifier keys should not be committed by a following enter key
1 parent 9ec7740 commit aab5eb8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/gear/chord_composer.cc

+1
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ ProcessResult ChordComposer::ProcessFunctionKey(const KeyEvent& key_event) {
7474
ProcessResult ChordComposer::ProcessChordingKey(const KeyEvent& key_event) {
7575
bool chording = !chord_.empty();
7676
if (key_event.shift() || key_event.ctrl() || key_event.alt()) {
77+
raw_sequence_.clear();
7778
ClearChord();
7879
return chording ? kAccepted : kNoop;
7980
}

0 commit comments

Comments
 (0)