From bdfa7f5894be1408da90d5af12f49ac11892364e Mon Sep 17 00:00:00 2001 From: Michael Richters Date: Wed, 28 Apr 2021 14:45:02 -0500 Subject: [PATCH] Fix a bug in `Key.isLayerShift()` It was failing to exclude `MoveToLayer()` keys, so it would return `true` incorrectly for them. Signed-off-by: Michael Richters --- src/kaleidoscope/key_defs.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/kaleidoscope/key_defs.h b/src/kaleidoscope/key_defs.h index c0a0f06c..ef8358f3 100644 --- a/src/kaleidoscope/key_defs.h +++ b/src/kaleidoscope/key_defs.h @@ -223,7 +223,8 @@ class Key { // worth singling them out. constexpr bool isLayerShift() const { return (isLayerKey() && - (keyCode_ >= LAYER_SHIFT_OFFSET)); + keyCode_ >= LAYER_SHIFT_OFFSET && + keyCode_ < LAYER_MOVE_OFFSET); } private: