Get to know MDN better
このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2019年3月.
MouseEvent.getModifierState() メソッドは、指定された修飾キーの現在の状態を返します。修飾キーが有効(すなわち、修飾キーが押されているかロックされている)ならば true、そうでなければ false を返します。
詳しくは KeyboardEvent.getModifierState() を参照してください。
修飾キーの値です。 値は修飾キーを表す KeyboardEvent.key 値のいずれか、または "Accel" である必要があります。 これは大文字と小文字を区別します。
論理値です。
| Pointer Events # dom-mouseevent-getmodifierstate |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2023年11月21日 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.