Contents

browser(_:shouldTypeSelectFor:withCurrentSearch:)

Sent to the delegate to determine whether keyboard-based selection (type select) for a given event and search string should proceed.

Declaration

@MainActor optional func browser(_ browser: NSBrowser, shouldTypeSelectFor event: NSEvent, withCurrentSearch searchString: String?) -> Bool

Parameters

  • browser:

    The browser.

  • event:

    The keyboard event being processed.

  • searchString:

    The keyboard-based selection string. It is nil when no keyboard-based selection has begun.

Return Value

true to allow the selection; false to disallow it.

See Also

Related Documentation

Managing Selection Behavior