共用方式為


UIElement.OnProcessKeyboardAccelerators 方法

定義

在應用程式中處理 鍵盤快速鍵 (或快速鍵) 之前呼叫。 每當應用程式程式碼或內部進程呼叫 ProcessKeyboardAccelerators時叫用。 覆寫此方法以影響預設加速器處理。

protected:
 virtual void OnProcessKeyboardAccelerators(ProcessKeyboardAcceleratorEventArgs ^ args) = OnProcessKeyboardAccelerators;
void OnProcessKeyboardAccelerators(ProcessKeyboardAcceleratorEventArgs const& args);
protected virtual void OnProcessKeyboardAccelerators(ProcessKeyboardAcceleratorEventArgs args);
function onProcessKeyboardAccelerators(args)
Protected Overridable Sub OnProcessKeyboardAccelerators (args As ProcessKeyboardAcceleratorEventArgs)

參數

Windows 需求

裝置系列
Windows 10 Fall Creators Update (已於 10.0.16299.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v5.0 引進)

適用於

另請參閱