Bug 186680 - Add support for Keyboard Map API
Summary: Add support for Keyboard Map API
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
: 218055 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-06-15 10:26 PDT by garykac
Modified: 2024-02-07 22:38 PST (History)
8 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description garykac 2018-06-15 10:26:53 PDT
The Keyboard Map API (`navigator.keyboard.getLayoutMap()`) returns a map which translates from `KeyboardEvent.code` values into a strings that can be shown to the user to identify each key.

This is not possible with existing web platform APIs because the value that should be shown to the user depends on the keyboard layouts that the user has installed and active.

WICG incubation spec: https://wicg.github.io/keyboard-map/

Explainer: https://github.com/WICG/keyboard-map/blob/master/explainer.md
Comment 2 Ahmad Saleem 2024-02-01 02:49:54 PST
https://github.com/mozilla/standards-positions/issues/300

> Only supported by Chromium as of right now.

Web-Spec Link (WICG): https://wicg.github.io/keyboard-map/

We don't have any WebKit position for this, should we create an entry here: https://github.com/WebKit/standards-positions/issues
Comment 4 Ryosuke Niwa 2024-02-01 14:25:24 PST
I'm pretty certain we're against this API due to privacy & fingerprinting concerns. See https://github.com/WICG/keyboard-map/issues/30
Comment 5 Ahmad Saleem 2024-02-01 14:27:15 PST
(In reply to Ryosuke Niwa from comment #4)
> I'm pretty certain we're against this API due to privacy & fingerprinting
> concerns. See https://github.com/WICG/keyboard-map/issues/30

Thanks! I just wanted to tidy-up all UI Events related bugs, so I thought to comment and get input. :-)
Comment 6 Ahmad Saleem 2024-02-07 22:38:44 PST
*** Bug 218055 has been marked as a duplicate of this bug. ***