SearchSuggestionManager.RequestingFocusOnKeyboardInput 事件
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
當使用者按下起始類型對搜尋的按鍵時引發。
// 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 會藉由將焦點設定為搜尋方塊控制項來處理此事件,讓後續的按鍵會導致輸入搜尋查詢。