Skip to content

Commit

Permalink
fix(chord_composer): letters with modifier keys should not be committ…
Browse files Browse the repository at this point in the history
…ed by a following enter key
  • Loading branch information
lotem committed Jan 4, 2017
1 parent 9ec7740 commit aab5eb8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gear/chord_composer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ ProcessResult ChordComposer::ProcessFunctionKey(const KeyEvent& key_event) {
ProcessResult ChordComposer::ProcessChordingKey(const KeyEvent& key_event) {
bool chording = !chord_.empty();
if (key_event.shift() || key_event.ctrl() || key_event.alt()) {
raw_sequence_.clear();
ClearChord();
return chording ? kAccepted : kNoop;
}
Expand Down

0 comments on commit aab5eb8

Please sign in to comment.