Inhaltsverzeichnis reduzieren
Inhaltsverzeichnis erweitern
Dieser Inhalt ist in Ihrer Sprache leider nicht verfügbar. Im Folgenden finden Sie die englische Version.

x-ms-acceleratorKey attribute | x-ms-acceleratorKey property

Provides a way to declare that an accelerator key has been assigned to an element.


<element x-ms-acceleratorKey="string" ... >


Property values

Type: String

Name of accelerator key, for example: Ctrl+B or Ctrl+S.

Standards information

There are no standards that apply here.


The x-ms-acceleratorKey attribute enables you to expose a notification in the accessibility tree to screen readers and other assistive technologies that an accelerator key exists. This attribute does not provide the accelerator key behavior. You must provide keyboard event handlers, such as onkeypress, onkeydown, or onkeyup, to process accelerator keys in your document.

In contrast to accessKey, which defines Alt+key shortcuts to UI elements in your interface, the x-ms-acceleratorKey attribute assigns keyboard shortcuts to functionality and commands for which you might not even have UI. Accelerator keys consist of the Ctrl key and a letter.

See also

Implementing keyboard accessibility (Windows Store apps using JavaScript and HTML)



© 2017 Microsoft