From aab5eb8af06aec9b41ba86178d12afc954251d09 Mon Sep 17 00:00:00 2001 From: Chen Gong Date: Wed, 4 Jan 2017 23:28:13 +0800 Subject: [PATCH] fix(chord_composer): letters with modifier keys should not be committed by a following enter key --- src/gear/chord_composer.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gear/chord_composer.cc b/src/gear/chord_composer.cc index cbe19a0bb8..9b46233804 100644 --- a/src/gear/chord_composer.cc +++ b/src/gear/chord_composer.cc @@ -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; }