Edit

KeyChordHelpers.FromModifiers(Boolean, Boolean, Boolean, Boolean, Integer, Integer) Method

Definition

Namespace: Microsoft.CommandPalette.Extensions.Toolkit

The FromModifiers method creates a new KeyChord object from the specified modifier keys and virtual key code.

Parameters

ctrl Boolean

Indicates whether the Control key is pressed.

alt Boolean

The Alt key is pressed.

shift Boolean

The Shift key is pressed.

win Boolean

The Windows key is pressed.

vkey Integer

The virtual key code of the key that is pressed. This value is typically obtained from the KeyInterop class.

scanCode Integer

The scan code of the key that is pressed. This value is typically obtained from the KeyInterop class.

Returns

A KeyChord object that represents the specified modifier keys and virtual key code.