Skip to content

Commit

Permalink
fix desc for Keyboard.lock() (#36153)
Browse files Browse the repository at this point in the history
  • Loading branch information
skyclouds2001 authored Oct 1, 2024
1 parent 354f237 commit d2dfabf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion files/en-us/web/api/keyboard/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ _Also inherits methods from its parent interface, {{DOMxRef("EventTarget")}}._
- {{domxref('Keyboard.getLayoutMap()')}} {{experimental_inline}}
- : Returns a {{jsxref('Promise')}} that resolves with an instance of {{domxref('KeyboardLayoutMap')}} which is a map-like object with functions for retrieving the strings associated with specific physical keys.
- {{domxref('Keyboard.lock()')}} {{experimental_inline}}
- : Returns a {{jsxref('Promise')}} after enabling the capture of keypresses for any or all of the keys on the physical keyboard.
- : Returns a {{jsxref('Promise')}} that resolves after enabling the capture of keypresses for any or all of the keys on the physical keyboard.
- {{domxref('Keyboard.unlock()')}} {{experimental_inline}}
- : Unlocks all keys captured by the `lock()` method and returns synchronously.

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/keyboard/lock/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ browser-compat: api.Keyboard.lock
{{APIRef("Keyboard API")}}{{SeeCompatTable}}{{securecontext_header}}

The **`lock()`** method of the
{{domxref("Keyboard")}} interface returns a {{jsxref('Promise')}} after enabling the
{{domxref("Keyboard")}} interface returns a {{jsxref('Promise')}} that resolves after enabling the
capture of keypresses for any or all of the keys on the physical keyboard. This method
can only capture keys that are granted access by the underlying operating
system.
Expand Down

0 comments on commit d2dfabf

Please sign in to comment.