diff options
Diffstat (limited to 'atari/gui.c')
-rw-r--r-- | atari/gui.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/atari/gui.c b/atari/gui.c index b56e110bc..3cd22e649 100644 --- a/atari/gui.c +++ b/atari/gui.c @@ -242,6 +242,15 @@ gui_window_create(struct browser_window *bw, gw->next = NULL; } + /* Loose focus: */ + window_set_focus(gw->root, WIDGET_NONE, NULL ); + + /* trigger on-focus event (select all text): */ + window_set_focus(gw->root, URL_WIDGET, NULL); + + /* delete selection: */ + toolbar_key_input(gw->root->toolbar, NK_DEL); + return( gw ); } |