mirror of
https://github.com/servo/servo.git
synced 2025-07-10 08:53:41 +01:00
20 lines
426 B
JavaScript
20 lines
426 B
JavaScript
// META: script=/resources/WebIDLParser.js
|
|
// META: script=/resources/idlharness.js
|
|
|
|
// https://wicg.github.io/keyboard-map/
|
|
|
|
'use strict';
|
|
|
|
idl_test(
|
|
['keyboard-map'],
|
|
['html'],
|
|
async idl_array => {
|
|
idl_array.add_objects({
|
|
Navigator: ['navigator'],
|
|
Keyboard: ['navigator.keyboard'],
|
|
KeyboardLayoutMap: ['layout_map'],
|
|
});
|
|
|
|
self.layout_map = await navigator.keyboard.getLayoutMap();
|
|
}
|
|
);
|