Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[zh-cn]: create the translation of VirtualKeyboard.geometryChange event #22045

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

tianyeeT
Copy link
Contributor

…vent

Description

Motivation

Additional details

Related issues and pull requests

@tianyeeT tianyeeT requested a review from a team as a code owner June 28, 2024 02:51
@tianyeeT tianyeeT requested review from yin1999 and removed request for a team June 28, 2024 02:51
@github-actions github-actions bot added the l10n-zh Issues related to Chinese content. label Jun 28, 2024
Copy link
Contributor

github-actions bot commented Jun 28, 2024

Preview URLs

Flaws (4)

URL: /zh-CN/docs/Web/API/VirtualKeyboard/geometrychange_event
Title: VirtualKeyboard:geometrychange 事件
Flaw count: 4

  • macros:
    • /zh-CN/docs/Web/API/VirtualKeyboard does not exist but fell back to /en-US/docs/Web/API/VirtualKeyboard
    • /zh-CN/docs/Web/API/VirtualKeyboard_API does not exist but fell back to /en-US/docs/Web/API/VirtualKeyboard_API
    • /zh-CN/docs/Web/API/VirtualKeyboard/boundingRect does not exist but fell back to /en-US/docs/Web/API/VirtualKeyboard/boundingRect
    • /zh-CN/docs/Web/API/VirtualKeyboard_API does not exist but fell back to /en-US/docs/Web/API/VirtualKeyboard_API
External URLs (1)

URL: /zh-CN/docs/Web/API/VirtualKeyboard/geometrychange_event
Title: VirtualKeyboard:geometrychange 事件

(comment last updated: 2024-07-07 15:59:26)


{{domxref("VirtualKeyboard")}} 接口的 **`geometrychange`** 事件在当屏幕上的虚拟键盘在显示和隐藏状态之间切换时触发。

`geometrychange` 事件非常有用,用于检测虚拟键盘何时出现和消失,以便根据需要调整布局。这在使用 {{domxref("VirtualKeyboard_API", "Virtual Keyboard API", "", "nocode")}} 时尤为重要,可以禁用浏览器在虚拟键盘显示和隐藏时自动调整视窗大小。
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Co-authored-by: skyclouds2001 <95597335+skyclouds2001@users.noreply.github.com>

{{APIRef("VirtualKeyboard API")}}{{SeeCompatTable}}{{securecontext_header}}

{{domxref("VirtualKeyboard")}} 接口的 **`geometrychange`** 事件在当屏幕上的虚拟键盘在显示和隐藏状态之间切换时触发。
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{{domxref("VirtualKeyboard")}} 接口的 **`geometrychange`** 事件在当屏幕上的虚拟键盘在显示和隐藏状态之间切换时触发
{{domxref("VirtualKeyboard")}} 接口的 **`geometrychange`** 事件会在屏幕虚拟键盘在显示和隐藏状态之间切换时触发

{{domxref("VirtualKeyboard")}} 接口的 **`geometrychange`** 事件在当屏幕上的虚拟键盘在显示和隐藏状态之间切换时触发。

`geometrychange` 事件非常有用,用于检测虚拟键盘何时出现和消失,以便根据需要调整布局。这在使用 {{domxref("VirtualKeyboard_API", "Virtual Keyboard API", "", "nocode")}} 时尤为重要,可以禁用浏览器在虚拟键盘显示和隐藏时自动调整视口大小。
Copy link
Member

@yin1999 yin1999 Jul 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
`geometrychange` 事件非常有用,用于检测虚拟键盘何时出现和消失,以便根据需要调整布局。这在使用 {{domxref("VirtualKeyboard_API", "Virtual Keyboard API", "", "nocode")}} 时尤为重要,可以禁用浏览器在虚拟键盘显示和隐藏时自动调整视口大小
`geometrychange` 事件对于检测虚拟键盘何时出现和消失(以便根据需要调整布局)非常有用。这在使用{{domxref("VirtualKeyboard_API", "虚拟键盘 API", "", "nocode")}} 以禁用浏览器在虚拟键盘显示和隐藏时自动调整视口大小时尤为重要

## 语法

使用事件名称作为 {{domxref("EventTarget.addEventListener", "addEventListener()")}} 方法的参数,或者设置事件处理器属性。
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
使用事件名称作为 {{domxref("EventTarget.addEventListener", "addEventListener()")}} 方法的参数,或者设置事件处理器属性。
{{domxref("EventTarget.addEventListener", "addEventListener()")}} 等方法中使用事件名称,或者设置事件处理器属性。

## 事件类型

一个通用的 {{domxref("Event")}}。
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

不需要强调数量

Suggested change
一个通用的 {{domxref("Event")}}。
通用 {{domxref("Event")}}。
Comment on lines +52 to +53
- {{domxref("VirtualKeyboard_API", "VirtualKeyboard API", "", "nocode")}}
- [使用 VirtualKeyboard API 实现完全控制](https://developer.chrome.com/docs/web-platform/virtual-keyboard/)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- {{domxref("VirtualKeyboard_API", "VirtualKeyboard API", "", "nocode")}}
- [使用 VirtualKeyboard API 实现完全控制](https://developer.chrome.com/docs/web-platform/virtual-keyboard/)
- {{domxref("VirtualKeyboard_API", "虚拟键盘 API", "", "nocode")}}
- [使用虚拟键盘 API 实现完全控制](https://developer.chrome.com/docs/web-platform/virtual-keyboard/)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
l10n-zh Issues related to Chinese content.
3 participants