From 3c6f92630916531fec5da948aaaecc7955237b6f Mon Sep 17 00:00:00 2001
From: Yelloween <134299963+Yelloween10@users.noreply.github.com>
Date: Wed, 23 Oct 2024 02:11:33 +0300
Subject: [PATCH] Fix incorrect MODIFIER_MASK value
---
core/os/keyboard.h | 2 +-
doc/classes/@GlobalScope.xml | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/core/os/keyboard.h b/core/os/keyboard.h
index 20519733363..29eb3ff0f78 100644
--- a/core/os/keyboard.h
+++ b/core/os/keyboard.h
@@ -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 = (0x7E << 22), ///< Apply this mask to isolate modifiers.
//RESERVED = (1 << 23),
CMD_OR_CTRL = (1 << 24),
SHIFT = (1 << 25),
diff --git a/doc/classes/@GlobalScope.xml b/doc/classes/@GlobalScope.xml
index 55d00b6cf90..44827ffb1dd 100644
--- a/doc/classes/@GlobalScope.xml
+++ b/doc/classes/@GlobalScope.xml
@@ -2355,7 +2355,7 @@
Key Code mask.
-
+
Modifier key mask.