Implement more KeyboardEvent/MouseEvent getModifierState() identifiers

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.



Working draft or equivalent

Status in Chromium


In development (tracking bug)

Consensus & Standardization

  • Shipped
  • Shipped
  • No public signals
  • No signals


Last updated on 2017-06-14