我們的志工尚未將本文翻譯為 正體中文 (繁體) 版本。加入我們,幫忙翻譯!
您也可以閱讀本文的 English (US) 版本。

Non-standard
This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.

The x-ms-acceleratorkey property provides a way to declare that an accelerator key has been assigned to an element.

This proprietary property is specific to Internet Explorer and Microsoft Edge.

The x-ms-acceleratorkey property 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.

Syntax

<button x-ms-acceleratorkey="string">...</button>

Value

Type: String

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

See also

文件標籤與貢獻者

此頁面的貢獻者: mdnwebdocs-bot, ExE-Boss, mattwojo
最近更新: mdnwebdocs-bot,