KeyboardDeliveryInterceptor.KeyDown Event

Definition

Occurs when a keyboard key is pressed. State info and event data is routed through this event instead of 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
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) 

Event Type

TypedEventHandler<KeyboardDeliveryInterceptor,KeyEventArgs>

Windows 10 requirements

App capabilities
inputForegroundObservation

Applies to

See also