共用方式為


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 會藉由將焦點設定為搜尋方塊控制項來處理此事件,讓後續的按鍵會導致輸入搜尋查詢。

適用於

另請參閱