mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
VisualBuilder: Pressing the Tab key when there are no widgets is a no-op.
This commit is contained in:
@@ -108,9 +108,11 @@ void VBForm::grabber_mousedown_event(GMouseEvent& event, VBWidget& widget, Direc
|
||||
void VBForm::keydown_event(GKeyEvent& event)
|
||||
{
|
||||
if (event.key() == KeyCode::Key_Tab) {
|
||||
if (!m_selected_widget && !m_widgets.is_empty()) {
|
||||
set_selected_widget(m_widgets.first());
|
||||
update();
|
||||
if (!m_selected_widget) {
|
||||
if (!m_widgets.is_empty()) {
|
||||
set_selected_widget(m_widgets.first());
|
||||
update();
|
||||
}
|
||||
return;
|
||||
} else {
|
||||
int selected_widget_index = 0;
|
||||
|
||||
Reference in New Issue
Block a user