|
|
|
@ -195,7 +195,7 @@ class Key {
|
|
|
|
|
// modifier keys like `LSHIFT(Key_RightAlt)` and `Key_Meh`. It will not match
|
|
|
|
|
// a key with only modifier flags (e.g. `LCTRL(RALT(Key_NoKey))`); this is an
|
|
|
|
|
// intentional feature so that plugins can distinguish between the two.
|
|
|
|
|
constexpr bool isKeyboardModifier() const {
|
|
|
|
|
constexpr bool __attribute__((always_inline)) isKeyboardModifier() const {
|
|
|
|
|
return (isKeyboardKey() &&
|
|
|
|
|
(keyCode_ >= HID_KEYBOARD_FIRST_MODIFIER &&
|
|
|
|
|
keyCode_ <= HID_KEYBOARD_LAST_MODIFIER));
|
|
|
|
|