summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorthankyouverycool <66646555+thankyouverycool@users.noreply.github.com>2022-12-15 07:25:28 -0500
committerAndreas Kling <kling@serenityos.org>2022-12-20 10:22:27 +0100
commit8d3f60c7efaf3d1ee7dda53fabf7c7f077486956 (patch)
treed23d4b520a17cf56d5b295f3ce70a99052b40137 /Userland
parent61d214eab1e05ab5eaeeb112aed9eed0086175b5 (diff)
downloadserenity-8d3f60c7efaf3d1ee7dda53fabf7c7f077486956.zip
LibGUI: Forward GlyphMapWidget Key_Tab events
Allows focus to be passed using the keyboard.
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Libraries/LibGUI/GlyphMapWidget.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGUI/GlyphMapWidget.cpp b/Userland/Libraries/LibGUI/GlyphMapWidget.cpp
index f881e6dcfe..344e653bb7 100644
--- a/Userland/Libraries/LibGUI/GlyphMapWidget.cpp
+++ b/Userland/Libraries/LibGUI/GlyphMapWidget.cpp
@@ -259,6 +259,11 @@ void GlyphMapWidget::doubleclick_event(MouseEvent& event)
void GlyphMapWidget::keydown_event(KeyEvent& event)
{
+ if (event.key() == KeyCode::Key_Tab) {
+ AbstractScrollableWidget::keydown_event(event);
+ return;
+ }
+
int range_offset = m_active_range.first;
if (!event.ctrl() && !event.shift() && event.key() != KeyCode::Key_Delete) {