Closed beaufortfrancois closed 2 years ago
That seems like a nice feature. It wasn't an issue for WebUSB but since you can filter HID devices by usage page and so would match a much broader range of devices the ability to then exclude some by another property seems useful.
That seems very useful.
I'd also like to be able to filter on whether the device permission is already granted. That would allow apps to exclude already-granted device permissions so the user is only choosing between new devices. The inverse could also be useful: filtering to show only the already-granted device permissions. You won't grant any permissions with that filter but it's a cheap way to add a chooser to your app.
Thanks for your support folks! I've started a spec PR at https://github.com/WICG/webhid/pull/93
Closing since #93 was merged.
Here's a feature request I received from developers:
Basically, providing a way to exclude known devices that are known to not work as expected.
Currently, developers let users pick a device, then check against a custom helper function (like
deviceIsBlocklisted()
) if device is known to be malfunctioning.CURRENT
How about providing some new
"excludes"
HIDDeviceRequestOptions option to help developers with this use case?PROPOSAL
@nondebug @reillyeon