The navigator.keyboard.lock API allows locking the keyboard so that more keypresses go into the page instead of interpreted by the OS etc.
It's not supported by Firefox yet (and I don't know if it will be), so that might be a reason not to implement it. It would be convenient though, for e.g. the OS/2 1.0 Program Switcher needing Ctrl + Esc.
The
navigator.keyboard.lock
API allows locking the keyboard so that more keypresses go into the page instead of interpreted by the OS etc.It's not supported by Firefox yet (and I don't know if it will be), so that might be a reason not to implement it. It would be convenient though, for e.g. the OS/2 1.0 Program Switcher needing Ctrl + Esc.