jeffpar / pcjs

The original IBM PC and other machine emulations in JavaScript
https://www.pcjs.org
Other
809 stars 122 forks source link

Support keyboard.lock API #64

Open Sgeo opened 1 year ago

Sgeo commented 1 year ago

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.