From 3655f9a5175e2a2f32383f10f157c08a275602ff Mon Sep 17 00:00:00 2001 From: Norwin Date: Mon, 3 Oct 2022 15:40:13 +0200 Subject: [PATCH] TypingBreaks: fix off-by-one on leftKeys / rightKeys previously, the right thumbcluster on the model 100 counted towards the leftKeys counter Signed-off-by: Norwin --- .../src/kaleidoscope/plugin/TypingBreaks.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/Kaleidoscope-TypingBreaks/src/kaleidoscope/plugin/TypingBreaks.cpp b/plugins/Kaleidoscope-TypingBreaks/src/kaleidoscope/plugin/TypingBreaks.cpp index f57d775e..808744e7 100644 --- a/plugins/Kaleidoscope-TypingBreaks/src/kaleidoscope/plugin/TypingBreaks.cpp +++ b/plugins/Kaleidoscope-TypingBreaks/src/kaleidoscope/plugin/TypingBreaks.cpp @@ -103,7 +103,7 @@ EventHandlerResult TypingBreaks::onKeyEvent(KeyEvent &event) { // So it seems we did not need to lock up. In this case, lets increase key // counters if need be. - if (event.addr.col() <= Runtime.device().matrix_columns / 2) + if (event.addr.col() < Runtime.device().matrix_columns / 2) left_hand_keys_++; else right_hand_keys_++;