SystemButtonEventController.SystemFunctionButtonReleased 事件

定义

释放当前按下的 Fn 硬件系统 (“功能转移) 按钮”时发生。

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

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

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

事件类型

注解

此 API 旨在供辅助功能工具用作从硬件系统按钮截获事件的低级别挂钩。

SystemButtonEventController 事件注册适用于系统范围,先到先得。 如果应用程序或服务将 SystemButtonEventController 事件 Handled 属性设置为 true,则在该应用或服务之后为同一事件通知注册的应用程序或服务将不会收到通知。

适用于

另请参阅