diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2020-02-22 15:10:51 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2020-02-22 15:10:51 +0000 |
commit | 0fa5f81a52a62a04f4564d84e391543995cf9418 (patch) | |
tree | fb78494544c63efe122f904e586a14906371f02f /desktop/browser_window.c | |
parent | 5c377cd285536f4bec2a6cfb6352a45cfe6cb39e (diff) | |
download | netsurf-0fa5f81a52a62a04f4564d84e391543995cf9418.tar.gz netsurf-0fa5f81a52a62a04f4564d84e391543995cf9418.tar.bz2 |
Browser: Support requesting location focus
In the creation of a browser window it may be valuable to request
that the GUI focus the location input box. This can be used when
the user requests a new tab/window to allow the entry box to be
focussed properly immediately.
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'desktop/browser_window.c')
-rw-r--r-- | desktop/browser_window.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/desktop/browser_window.c b/desktop/browser_window.c index fcee08599..2a3948f4c 100644 --- a/desktop/browser_window.c +++ b/desktop/browser_window.c @@ -3044,6 +3044,8 @@ browser_window_create(enum browser_window_create_flags flags, gw_flags |= GW_CREATE_CLONE; if (flags & BW_CREATE_FOREGROUND) gw_flags |= GW_CREATE_FOREGROUND; + if (flags & BW_CREATE_FOCUS_LOCATION) + gw_flags |= GW_CREATE_FOCUS_LOCATION; ret->window = guit->window->create(ret, (existing != NULL) ? existing->window : NULL, |