← Back to release summary

Implement more KeyboardEvent/MouseEvent getModifierState() identifiers

Category
DOM
Type
New or changed feature
Status
Enabled by default (Chrome 48)
Intent stage
None

Summary

Currently only getModifierState only supports Alt, Control, Shift, Meta query modifiers. Introduce support for the following query modifier fields: Accel, AltGraph, CapsLock, Fn, NumLock, OS, ScrollLock, Symbol. This leaves: FnLock, Hyper, Super, SymbolLock specified but not supported. These keys typically are not generated on modern OS and keyboards. Nor does FireFox support them.

Standards & signals

Docs: https://w3c.github.io/DOM-Level-3-Events-key/#keys-modifier

View on chromestatus.com