From 8440a5ce522d3a98e17fe08ece6245718ecf089b Mon Sep 17 00:00:00 2001 From: skyclouds2001 <95597335+skyclouds2001@users.noreply.github.com> Date: Wed, 2 Oct 2024 04:19:25 +0800 Subject: [PATCH] fix desc --- files/en-us/web/api/keyboard/index.md | 2 +- files/en-us/web/api/keyboard/lock/index.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/files/en-us/web/api/keyboard/index.md b/files/en-us/web/api/keyboard/index.md index 349864d25394b7e..faae3968c50d872 100644 --- a/files/en-us/web/api/keyboard/index.md +++ b/files/en-us/web/api/keyboard/index.md @@ -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. diff --git a/files/en-us/web/api/keyboard/lock/index.md b/files/en-us/web/api/keyboard/lock/index.md index d4fca18eef76a28..867c0315f2a342d 100644 --- a/files/en-us/web/api/keyboard/lock/index.md +++ b/files/en-us/web/api/keyboard/lock/index.md @@ -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.