mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 16:07:35 +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)
|
void VBForm::keydown_event(GKeyEvent& event)
|
||||||
{
|
{
|
||||||
if (event.key() == KeyCode::Key_Tab) {
|
if (event.key() == KeyCode::Key_Tab) {
|
||||||
if (!m_selected_widget && !m_widgets.is_empty()) {
|
if (!m_selected_widget) {
|
||||||
set_selected_widget(m_widgets.first());
|
if (!m_widgets.is_empty()) {
|
||||||
update();
|
set_selected_widget(m_widgets.first());
|
||||||
|
update();
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
int selected_widget_index = 0;
|
int selected_widget_index = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue