Skip to content

Commit ceff0bd

Browse files
committed
Use default_widget instead of grabbing focus
1 parent d418e58 commit ceff0bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

demo/MainWindow.vala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ public class MainWindow : Gtk.ApplicationWindow {
108108
overlay.add_overlay (toast);
109109

110110
child = overlay;
111+
default_widget = send_button;
111112

112-
send_button.grab_focus ();
113113
send_button.clicked.connect (send_notification);
114114

115115
var toast_action = new SimpleAction ("toast", VariantType.STRING);

0 commit comments

Comments
 (0)