Contents

webViewFirstResponder(_:)

Returns the first responder of the web view’s window.

Declaration

optional func webViewFirstResponder(_ sender: WebView!) -> NSResponder!

Parameters

  • sender:

    The web view that sent the message.

Return Value

The view or subview that currently has the input focus. It can return nil or the default first responder if the sender is not attached to a window or if another view (not in the window) has the focus.

See Also

Working with the Responder Chain