mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 08:08:43 +00:00
UI/AppKit: Focus webview if URL was changed
When we manually enter a new URL and hit enter, the web view gets focused. But when the URL changes for other reasons, such as starting Ladybird with a URL argument, the location field was still focused.
This commit is contained in:
parent
0cab272f7f
commit
8537f0fa82
Notes:
github-actions[bot]
2025-08-01 08:10:47 +00:00
Author: https://github.com/gmta
Commit: 8537f0fa82
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5666
1 changed files with 1 additions and 0 deletions
|
@ -169,6 +169,7 @@ static NSString* const TOOLBAR_TAB_OVERVIEW_IDENTIFIER = @"ToolbarTabOverviewIde
|
|||
- (void)onURLChange:(URL::URL const&)url
|
||||
{
|
||||
[self setLocationFieldText:url.serialize()];
|
||||
[self.window makeFirstResponder:[self tab].web_view];
|
||||
}
|
||||
|
||||
- (void)onBackNavigationEnabled:(BOOL)back_enabled
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue