SearchSuggestionManager.RequestingFocusOnKeyboardInput 事件

定义

当用户按下启动类型到搜索的键时引发。

// 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) 

事件类型

注解

应用的 UI 通过将焦点设置为搜索框控件来处理此事件,以便后续击键导致输入搜索查询。

适用于

另请参阅