Explorar o código

LibGUI: Forward GlyphMapWidget Key_Tab events

Allows focus to be passed using the keyboard.
thankyouverycool %!s(int64=2) %!d(string=hai) anos
pai
achega
8d3f60c7ef
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      Userland/Libraries/LibGUI/GlyphMapWidget.cpp

+ 5 - 0
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) {