From 93361f0edb021a17b0fdf2882cb02e6bfbaf4a52 Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Wed, 6 Apr 2016 12:29:07 +0200 Subject: [PATCH] Partial key sequence match no longer propagates the event --- ZRCola/zrcolakeyhndlr.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ZRCola/zrcolakeyhndlr.cpp b/ZRCola/zrcolakeyhndlr.cpp index b932f11..eee22f7 100644 --- a/ZRCola/zrcolakeyhndlr.cpp +++ b/ZRCola/zrcolakeyhndlr.cpp @@ -95,8 +95,8 @@ bool wxZRColaKeyHandler::ProcessEvent(wxEvent& event) ZRCola::keyseq_db::keyseq::CompareSequence(m_seq.data(), m_seq.size(), m_ks_db.idxKey[start].seq, std::min(m_ks_db.idxKey[start].seq_len, m_seq.size())) == 0) { // The sequence is a partial match. Continue watching. - //event.StopPropagation(); - //return true; + event.StopPropagation(); + return true; } else { // The key sequence has no future chance to match. Start all over again. m_seq.clear();