Skip to content

Commit

Permalink
Fix giving focus to webView when it's loaded in BrowserTabViewController
Browse files Browse the repository at this point in the history
  • Loading branch information
ayoy committed Jan 16, 2024
1 parent 8eaa607 commit 50303ba
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion DuckDuckGo/Tab/View/BrowserTabViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,11 @@ final class BrowserTabViewController: NSViewController {
private var setFirstResponderAfterAdding = false

private func setFirstResponderIfNeeded() {
guard webView?.url != nil else {
guard let webView else {
setFirstResponderAfterAdding = true
return
}
guard webView.url != nil else {
return
}

Expand Down

0 comments on commit 50303ba

Please sign in to comment.