Share via


InjectedInputShortcut Enum

Definition

Specifies the system shortcuts for InjectShortcut.

public enum class InjectedInputShortcut
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 196608)]
enum class InjectedInputShortcut
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 196608)]
public enum InjectedInputShortcut
var value = Windows.UI.Input.Preview.Injection.InjectedInputShortcut.back
Public Enum InjectedInputShortcut
Inheritance
InjectedInputShortcut
Attributes

Windows requirements

Device family
Windows 10 Anniversary Edition (introduced in 10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v3.0)

Fields

Name Value Description
Back 0

Indicates traversal through a back stack.

Start 1

Indicates traversal to a start, or home, screen.

2

Indicates traversal to a search screen.

Examples

Here are some downloadable samples demonstrating basic input and input injection:

Remarks

Important

The APIs in this namespace require the inputInjectionBrokered restricted capability.

Using input injection requires the following be added to the Package.appxmanifest:

  • To <Package>
    • xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
    • IgnorableNamespaces="rescap"
  • To <Capabilities>
    • <rescap:Capability Name="inputInjectionBrokered" />

Applies to

See also