Movatterモバイル変換


[0]ホーム

URL:


  1. 開発者向けのウェブ技術
  2. Web API
  3. Element
  4. ariaKeyShortcuts

このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docsコミュニティーについてもっと知り、仲間になるにはこちらから。

View in EnglishAlways switch to English

Element: ariaKeyShortcuts プロパティ

Baseline 2023
Newly available

Since October 2023, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.

ariaKeyShortcutsElement インターフェイスのプロパティで、aria-keyshortcuts 属性の値を反映し、要素をアクティブにしたりフォーカスを与えたりするために作者が実装したキーボードショートカットを示します。

文字列です。

この例では、IDがskip-link の要素のaria-keyshortcuts 属性には "Alt+Shift+A" が設定されています。ariaKeyShortcuts を使用して、値を "Alt+Shift+M" に変更します。

html
<a href="#content" aria-keyshortcuts="Alt+Shift+A">  Skip to content</a>
js
let el = document.getElementById("saveChanges");console.log(el.ariaKeyShortcuts); // "Alt+Shift+A"el.ariaKeyShortcuts = "Alt+Shift+M";console.log(el.ariaKeyShortcuts); // "Alt+Shift+M"

仕様書

Specification
Accessible Rich Internet Applications (WAI-ARIA)
# dom-ariamixin-ariakeyshortcuts

ブラウザーの互換性

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2026 Movatter.jp