SearchSuggestionManager.RequestingFocusOnKeyboardInput Event

Definition

Raised when the user presses a key that initiates type-to-search.

// Register
event_token RequestingFocusOnKeyboardInput(TypedEventHandler<SearchSuggestionManager, RequestingFocusOnKeyboardInputEventArgs const&> const& handler) const;

// Revoke with event_token
void RequestingFocusOnKeyboardInput(event_token const* cookie) const;

// Revoke with event_revoker
SearchSuggestionManager::RequestingFocusOnKeyboardInput_revoker RequestingFocusOnKeyboardInput(auto_revoke_t, TypedEventHandler<SearchSuggestionManager, RequestingFocusOnKeyboardInputEventArgs const&> const& handler) const;
public event TypedEventHandler<SearchSuggestionManager,RequestingFocusOnKeyboardInputEventArgs> RequestingFocusOnKeyboardInput;
function onRequestingFocusOnKeyboardInput(eventArgs) { /* Your code */ }
searchSuggestionManager.addEventListener("requestingfocusonkeyboardinput", onRequestingFocusOnKeyboardInput);
searchSuggestionManager.removeEventListener("requestingfocusonkeyboardinput", onRequestingFocusOnKeyboardInput);
- or -
searchSuggestionManager.onrequestingfocusonkeyboardinput = onRequestingFocusOnKeyboardInput;
Public Custom Event RequestingFocusOnKeyboardInput As TypedEventHandler(Of SearchSuggestionManager, RequestingFocusOnKeyboardInputEventArgs) 

Event Type

Remarks

The app's UI handles this event by setting focus to the search box control so that subsequent keystrokes result in entering a search query.

Applies to

See also