Skip to content

Commit

Permalink
Update Keyboard Lock IDL and tests
Browse files Browse the repository at this point in the history
This change is extracted from
web-platform-tests#31151 and done
separately because dom.idl is needed for EventTarget.
  • Loading branch information
foolip committed Oct 8, 2021
1 parent 3ee661f commit 08687da
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion interfaces/keyboard-lock.idl
Expand Up @@ -7,7 +7,8 @@ partial interface Navigator {
[SecureContext, SameObject] readonly attribute Keyboard keyboard;
};

[SecureContext, Exposed=Window] interface Keyboard {
[SecureContext, Exposed=Window]
interface Keyboard : EventTarget {
Promise<undefined> lock(optional sequence<DOMString> keyCodes = []);
undefined unlock();
};
2 changes: 1 addition & 1 deletion keyboard-lock/idlharness.https.window.js
Expand Up @@ -8,7 +8,7 @@

idl_test(
['keyboard-lock'],
['html'],
['html', 'dom'],
idl_array => {
idl_array.add_objects({
Navigator: ['navigator'],
Expand Down
2 changes: 1 addition & 1 deletion keyboard-map/idlharness.https.window.js
Expand Up @@ -7,7 +7,7 @@

idl_test(
['keyboard-map'],
['html', 'keyboard-lock'],
['keyboard-lock', 'html', 'dom'],
async idl_array => {
idl_array.add_objects({
Navigator: ['navigator'],
Expand Down

0 comments on commit 08687da

Please sign in to comment.