You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Input for Workers Proposal existed to expose keyboard, pointer and MIDI events to workers. The WebMIDI API is handling the MIDI part now, but the Input for Workers Proposal has been abandoned, so the Web now lacks any active proposal for accessing the keyboard, mouse, touchpad etc in workers.
I understand that this API will not generally expose keyboards or pointer devices for security reasons. However, (IIUC) this is only an issue because the API permits pages to access devices after the page loses focus.
Is there any way to safely extend the WebHID API to permit access to keyboards and pointers? For example, an option that permits more devices to be accessed, but only when the page has focus.
I don't understand the technicalities well enough to propose anything concrete, and I understand this would complicate the WebHID spec, but the Web really needs an API for accessing keyboard and pointer events globally (DOM-agnostically) that can be accessed in workers. It seemed worthwhile considering whether this spec could address that issue too.
The text was updated successfully, but these errors were encountered:
The Input for Workers Proposal existed to expose keyboard, pointer and MIDI events to workers. The WebMIDI API is handling the MIDI part now, but the Input for Workers Proposal has been abandoned, so the Web now lacks any active proposal for accessing the keyboard, mouse, touchpad etc in workers.
I understand that this API will not generally expose keyboards or pointer devices for security reasons. However, (IIUC) this is only an issue because the API permits pages to access devices after the page loses focus.
Is there any way to safely extend the WebHID API to permit access to keyboards and pointers? For example, an option that permits more devices to be accessed, but only when the page has focus.
I don't understand the technicalities well enough to propose anything concrete, and I understand this would complicate the WebHID spec, but the Web really needs an API for accessing keyboard and pointer events globally (DOM-agnostically) that can be accessed in workers. It seemed worthwhile considering whether this spec could address that issue too.
The text was updated successfully, but these errors were encountered: