summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/interfaces/keyboard-lock.idl
blob: d81e9924a357a653dd3d3dcd038ddbc33e6802bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// GENERATED CONTENT - DO NOT EDIT
// Content was automatically extracted by Reffy into webref
// (https://github.com/w3c/webref)
// Source: Keyboard Lock (https://wicg.github.io/keyboard-lock/)

partial interface Navigator {
  [SecureContext, SameObject] readonly attribute Keyboard keyboard;
};

[SecureContext, Exposed=Window]
interface Keyboard : EventTarget {
  Promise<undefined> lock(optional sequence<DOMString> keyCodes = []);
  undefined unlock();
};