Skip to content

Latest commit

 

History

History
64 lines (50 loc) · 1.87 KB

File metadata and controls

64 lines (50 loc) · 1.87 KB
title KeyBindings Element
description The KeyBindings element groups KeyBinding elements and other KeyBindings groupings. This article contains an example.
ms.date 11/04/2016
ms.topic reference
f1_keywords
KeyBindings
helpviewer_keywords
VSCT XML schema elements, KeyBindings
KeyBindings element (VSCT XML schema)
author tinaschrepfer
ms.author tinali
ms.subservice extensibility-integration

KeyBindings element

The KeyBindings element groups KeyBinding elements and other KeyBindings groupings.

Syntax

<KeyBindings>
  <KeyBinding>... </KeyBinding>
  <KeyBinding>... </KeyBinding>
</KeyBindings>

Attributes and elements

The following sections describe attributes, child elements, and parent elements.

Attributes

Attribute Description
Condition Optional. See Conditional attributes.

Child elements

Element Description
KeyBinding element Specifies keyboard shortcuts for the commands.
KeyBindings Groups KeyBinding elements and other KeyBindings groupings.

Parent elements

Element Description
CommandTable element Defines all the elements that represent commands.

Example

<KeyBindings>
  <KeyBinding guid="guidWidgetPackage" id="cmdidUpdateWidget"
    editor="guidWidgetEditor" key1="VK_F5"/>
  <KeyBinding guid="guidWidgetPackage" id="cmdidRunWidget"
    editor="guidWidgetEditor" key1="VK_F5" mod1="Control"/>
</KeyBindings>

See also