---
title: "webView(_:makeFirstResponder:)"
framework: webkit
role: symbol
role_heading: Instance Method
path: "webkit/webuidelegate/webview(_:makefirstresponder:)"
---

# webView(_:makeFirstResponder:)

Sets the first responder of a web view’s window to the specified view.

## Declaration

```swift
optional func webView(_ sender: WebView!, makeFirstResponder responder: NSResponder!)
```

## Parameters

- `sender`: The web view that sent the message.
- `responder`: A view in the web view’s hierarchy.

## Discussion

Discussion You can ignore this message if sender is not yet attached to a window.

## See Also

### Working with the Responder Chain

- [webViewFirstResponder(_:)](webkit/webuidelegate/webviewfirstresponder(_:).md)
