Browse Source

LibGUI: When tabbing between focusable widgets, skip over disabled ones.

Andreas Kling 6 years ago
parent
commit
b0ccd04a9c
1 changed files with 2 additions and 0 deletions
  1. 2 0
      LibGUI/GWindow.cpp

+ 2 - 0
LibGUI/GWindow.cpp

@@ -531,6 +531,8 @@ Vector<GWidget*> GWindow::focusable_widgets() const
             auto& child_widget = *static_cast<GWidget*>(child);
             if (!child_widget.is_visible())
                 continue;
+            if (!child_widget.is_enabled())
+                continue;
             collect_focusable_widgets(child_widget);
         }
     };