KeyboardDeliveryInterceptor KeyboardDeliveryInterceptor KeyboardDeliveryInterceptor KeyboardDeliveryInterceptor KeyboardDeliveryInterceptor Class

Definition

Enables an app to override the system processing of raw keyboard input, including key combinations such as shortcut keys, access keys (or hot keys), accelerator keys, and application keys.

The raw keyboard input is intercepted, suppressed, and routed to the app (when in the foreground) for processing.

Note

Secure attention sequence (SAS) key combinations, including Ctrl-Alt-Del and Windows-L, continue to be processed by the system.

public : sealed class KeyboardDeliveryInterceptor : IKeyboardDeliveryInterceptor
struct winrt::Windows::UI::Input::KeyboardDeliveryInterceptor : IKeyboardDeliveryInterceptor
public sealed class KeyboardDeliveryInterceptor : IKeyboardDeliveryInterceptor
Public NotInheritable Class KeyboardDeliveryInterceptor Implements IKeyboardDeliveryInterceptor
// This class does not provide a public constructor.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10586.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v2)
Capabilities
inputForegroundObservation

Remarks

The value of the RepeatCount property returned by KeyEventArgs.KeyStatus is always 0.

The value of the WasKeyDown property returned by KeyEventArgs.KeyStatus is always false.

If Handled is set to false, an error occurs.

Properties

IsInterceptionEnabledWhenInForeground IsInterceptionEnabledWhenInForeground IsInterceptionEnabledWhenInForeground IsInterceptionEnabledWhenInForeground IsInterceptionEnabledWhenInForeground

Gets or sets whether the app overrides the system processing of raw keyboard input, including key combinations such as shortcut keys, access keys (or hot keys), accelerator keys, and application keys.

The raw keyboard input is intercepted, suppressed, and routed to the app (when in the foreground) for processing.

Note

Secure attention sequence (SAS) key combinations, including Ctrl-Alt-Del and Windows-L, continue to be processed by the system.

Methods

GetForCurrentView() GetForCurrentView() GetForCurrentView() GetForCurrentView() GetForCurrentView()

Retrieves a KeyboardDeliveryInterceptor object associated with the current app view.

Events

KeyDown KeyDown KeyDown KeyDown KeyDown

Occurs when a keyboard key is pressed. State info and event data is routed through this event instead of CoreWindow.KeyDown.

KeyUp KeyUp KeyUp KeyUp KeyUp

Occurs when a pressed keyboard key is released. State info and event data is routed through this event instead of CoreWindow.KeyUp.

See Also