mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 00:08:11 +00:00
VisualBuilder: Pressing the Tab key when there are no widgets is a no-op.
This commit is contained in:
parent
ef8c613737
commit
428cae7864
1 changed files with 5 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue