summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorthankyouverycool <66646555+thankyouverycool@users.noreply.github.com>2022-09-25 10:40:31 -0400
committerAndreas Kling <kling@serenityos.org>2022-11-19 11:04:11 +0100
commit5c9a1400847352e9d13877f555356273ca7029f9 (patch)
treecab85a24fb162fed9b611d2b9cad08b7bfa5940f /Userland
parent7725042235b8e59c7f3f927e8cfb27bf124bfbaf (diff)
downloadserenity-5c9a1400847352e9d13877f555356273ca7029f9.zip
LibGUI: Display shortcut text for Alt Graph modifier
Fixes Accessibility menus in ThemeEditor and Magnifier not showing their complete shortcut combinations
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Libraries/LibGUI/Shortcut.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGUI/Shortcut.cpp b/Userland/Libraries/LibGUI/Shortcut.cpp
index 0866934499..73ce0db107 100644
--- a/Userland/Libraries/LibGUI/Shortcut.cpp
+++ b/Userland/Libraries/LibGUI/Shortcut.cpp
@@ -22,6 +22,8 @@ String Shortcut::to_string() const
parts.append("Shift");
if (m_modifiers & Mod_Alt)
parts.append("Alt");
+ if (m_modifiers & Mod_AltGr)
+ parts.append("AltGr");
if (m_modifiers & Mod_Super)
parts.append("Super");