SystemButtonEventController.SystemFunctionButtonPressed Event

Definition

Occurs when a Fn hardware system (also know as Function Shift) button is pressed.

// Register
event_token SystemFunctionButtonPressed(TypedEventHandler<SystemButtonEventController, SystemFunctionButtonEventArgs const&> const& handler) const;

// Revoke with event_token
void SystemFunctionButtonPressed(event_token const* cookie) const;

// Revoke with event_revoker
SystemButtonEventController::SystemFunctionButtonPressed_revoker SystemFunctionButtonPressed(auto_revoke_t, TypedEventHandler<SystemButtonEventController, SystemFunctionButtonEventArgs const&> const& handler) const;
public event TypedEventHandler<SystemButtonEventController,SystemFunctionButtonEventArgs> SystemFunctionButtonPressed;
function onSystemFunctionButtonPressed(eventArgs) { /* Your code */ }
systemButtonEventController.addEventListener("systemfunctionbuttonpressed", onSystemFunctionButtonPressed);
systemButtonEventController.removeEventListener("systemfunctionbuttonpressed", onSystemFunctionButtonPressed);
- or -
systemButtonEventController.onsystemfunctionbuttonpressed = onSystemFunctionButtonPressed;
Public Custom Event SystemFunctionButtonPressed As TypedEventHandler(Of SystemButtonEventController, SystemFunctionButtonEventArgs) 

Event Type

Remarks

This API is intended for use by Accessibility tools as a low level hook for intercepting events from hardware system buttons.

SystemButtonEventController event registration applies system wide and is first-come, first-served. If an application or service sets a SystemButtonEventController event Handled property to true, applications or services that registered after that app or service for the same event notification will not receive the notification.

Applies to

See also