Merge pull request #98441 from Yelloween10/fix-modifier-mask

Fix incorrect `KEY_MODIFIER_MASK` value
This commit is contained in:
Thaddeus Crews
2024-12-23 11:15:17 -06:00
3 changed files with 9 additions and 2 deletions

View File

@@ -249,7 +249,7 @@ enum class Key {
enum class KeyModifierMask {
CODE_MASK = ((1 << 23) - 1), ///< Apply this mask to any keycode to remove modifiers.
MODIFIER_MASK = (0x7F << 22), ///< Apply this mask to isolate modifiers.
MODIFIER_MASK = (0x7F << 24), ///< Apply this mask to isolate modifiers.
//RESERVED = (1 << 23),
CMD_OR_CTRL = (1 << 24),
SHIFT = (1 << 25),