From 5a2c0a11f07c39cdc29890336ba95e517ecd3f36 Mon Sep 17 00:00:00 2001 From: skyclouds2001 <95597335+skyclouds2001@users.noreply.github.com> Date: Wed, 23 Oct 2024 10:31:27 +0800 Subject: [PATCH] [zh-CN]: add translation for `Keyboard.unlock()` --- files/zh-cn/web/api/keyboard/unlock/index.md | 32 ++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 files/zh-cn/web/api/keyboard/unlock/index.md diff --git a/files/zh-cn/web/api/keyboard/unlock/index.md b/files/zh-cn/web/api/keyboard/unlock/index.md new file mode 100644 index 00000000000000..2d678676f4fc38 --- /dev/null +++ b/files/zh-cn/web/api/keyboard/unlock/index.md @@ -0,0 +1,32 @@ +--- +title: Keyboard:unlock() 方法 +slug: Web/API/Keyboard/unlock +l10n: + sourceCommit: eab4066e72d5478de920e4020e5db71214dcffa6 +--- + +{{APIRef("Keyboard API")}}{{SeeCompatTable}}{{securecontext_header}} + +{{domxref("Keyboard")}} 接口的 **`unlock()`** 方法解锁所有被 {{domxref('Keyboard.lock()')}} 方法捕获的键并同步返回。 + +## 语法 + +```js-nolint +unlock() +``` + +### 参数 + +无。 + +### 返回值 + +无({{jsxref("undefined")}})。 + +## 规范 + +{{Specifications}} + +## 浏览器兼容性 + +{{Compat}}