From cb955c7d09fd0c91f981bac4afaae7f23682bd87 Mon Sep 17 00:00:00 2001 From: Michael Richters Date: Sat, 3 Jul 2021 21:40:58 -0400 Subject: [PATCH] Prevent AutoShift queue from overflowing Signed-off-by: Michael Richters --- .../src/kaleidoscope/plugin/AutoShift.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/plugins/Kaleidoscope-AutoShift/src/kaleidoscope/plugin/AutoShift.cpp b/plugins/Kaleidoscope-AutoShift/src/kaleidoscope/plugin/AutoShift.cpp index 2c0c4df4..5392c768 100644 --- a/plugins/Kaleidoscope-AutoShift/src/kaleidoscope/plugin/AutoShift.cpp +++ b/plugins/Kaleidoscope-AutoShift/src/kaleidoscope/plugin/AutoShift.cpp @@ -138,8 +138,6 @@ EventHandlerResult AutoShift::onKeyswitchEvent(KeyEvent &event) { if (!queue_.isEmpty()) { // There's an unresolved AutoShift key press. if (queue_.isFull()) { - flushQueue(); - } else if (event.addr == queue_.addr(0)) { flushEvent(false); flushQueue(); }