Skip to content

Commit ea9698f

Browse files
committed
Manage focus
Fixes: #75
1 parent 3ce1669 commit ea9698f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ResizePage.vala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ namespace Resizer {
121121
intro_label.label = _("Resize image(s) within:");
122122
// when pressing enter, activate the select images button
123123
app.set_default (drop_area.select_button);
124+
app.set_focus (drop_area.select_button);
124125
} else {
125126
cancel_btn.sensitive = true;
126127
resize_btn.sensitive = true;
@@ -137,6 +138,7 @@ namespace Resizer {
137138
}
138139
// when pressing enter, activate the resize button
139140
app.set_default (resize_btn);
141+
app.set_focus (resize_btn);
140142
}
141143
}
142144
}

0 commit comments

Comments
 (0)