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 <gedankenexperimenter@gmail.com>
pull/1024/head
Michael Richters 3 years ago
parent 58f56236a1
commit bdfa7f5894
No known key found for this signature in database
GPG Key ID: 1288FD13E4EEF0C0

@ -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:

Loading…
Cancel
Save