summaryrefslogtreecommitdiff
path: root/Kernel/API/KeyCode.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-03-11 18:50:23 +0100
committerAndreas Kling <kling@serenityos.org>2021-03-11 18:55:16 +0100
commit38f11cc1ba31e13e0f748781a654a98eb3a45d19 (patch)
tree9c47054bc9ef285e38a30f2e3d634cf9d3bb3ef8 /Kernel/API/KeyCode.h
parent822d7da6cc41606a4303f53f1f01aada9153969f (diff)
downloadserenity-38f11cc1ba31e13e0f748781a654a98eb3a45d19.zip
Everywhere: Rename "logo" key to "super" key
This seems to be the most common way to refer to this key, so let's call it what people actually call it.
Diffstat (limited to 'Kernel/API/KeyCode.h')
-rw-r--r--Kernel/API/KeyCode.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/Kernel/API/KeyCode.h b/Kernel/API/KeyCode.h
index 65bd32a1b6..a95d1a240e 100644
--- a/Kernel/API/KeyCode.h
+++ b/Kernel/API/KeyCode.h
@@ -134,7 +134,7 @@
__ENUMERATE_KEY_CODE(Pipe, "|") \
__ENUMERATE_KEY_CODE(Tilde, "~") \
__ENUMERATE_KEY_CODE(Backtick, "`") \
- __ENUMERATE_KEY_CODE(Logo, "Logo") \
+ __ENUMERATE_KEY_CODE(Super, "Super") \
__ENUMERATE_KEY_CODE(Menu, "Menu")
enum KeyCode : u8 {
@@ -145,14 +145,14 @@ enum KeyCode : u8 {
Key_Shift
= Key_LeftShift,
};
-const int key_code_count = Key_Logo;
+const int key_code_count = Key_Super;
enum KeyModifier {
Mod_None = 0x00,
Mod_Alt = 0x01,
Mod_Ctrl = 0x02,
Mod_Shift = 0x04,
- Mod_Logo = 0x08,
+ Mod_Super = 0x08,
Mod_AltGr = 0x10,
Mod_Mask = 0x1f,
@@ -169,7 +169,7 @@ struct KeyEvent {
bool alt() const { return flags & Mod_Alt; }
bool ctrl() const { return flags & Mod_Ctrl; }
bool shift() const { return flags & Mod_Shift; }
- bool logo() const { return flags & Mod_Logo; }
+ bool super() const { return flags & Mod_Super; }
bool altgr() const { return flags & Mod_AltGr; }
unsigned modifiers() const { return flags & Mod_Mask; }
bool is_press() const { return flags & Is_Press; }