KeyboardDeliveryInterceptor.KeyDown 事件
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
發生于按下鍵盤按鍵時。 狀態資訊和事件資料會透過此事件路由傳送,而不是 CoreWindow.KeyDown。
// Register
event_token KeyDown(TypedEventHandler<KeyboardDeliveryInterceptor, KeyEventArgs const&> const& handler) const;
// Revoke with event_token
void KeyDown(event_token const* cookie) const;
// Revoke with event_revoker
KeyboardDeliveryInterceptor::KeyDown_revoker KeyDown(auto_revoke_t, TypedEventHandler<KeyboardDeliveryInterceptor, KeyEventArgs const&> const& handler) const;
public event TypedEventHandler<KeyboardDeliveryInterceptor,KeyEventArgs> KeyDown;
function onKeyDown(eventArgs) { /* Your code */ }
keyboardDeliveryInterceptor.addEventListener("keydown", onKeyDown);
keyboardDeliveryInterceptor.removeEventListener("keydown", onKeyDown);
- or -
keyboardDeliveryInterceptor.onkeydown = onKeyDown;
Public Custom Event KeyDown As TypedEventHandler(Of KeyboardDeliveryInterceptor, KeyEventArgs)
事件類型
Windows 需求
應用程式功能 |
inputForegroundObservation
|