Skip to content

docs: translate pen and mouse as Chinese #2413

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

Merged
merged 2 commits into from
Aug 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
title: "Mouse actions"
linkTitle: "Mouse"
title: "鼠标操作"
linkTitle: "鼠标"
weight: 4
needsTranslation: true
description: >
A representation of any pointer device for interacting with a web page.
任何用于与网页进行交互的指针设备的表示形式.
aliases: [
"/documentation/zh-cn/support_packages/mouse_and_keyboard_actions_in_detail/",
"/zh-cn/documentation/support_packages/mouse_and_keyboard_actions_in_detail/"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
---
title: "Pen actions"
linkTitle: "Pen"
title: "触控笔操作"
linkTitle: "触控笔"
weight: 5
description: >
A representation of a pen stylus kind of pointer input for interacting with a web page.
一种用于与网页交互的类似笔尖的指针输入设备的表示.
---

{{< badge-browser browser=Chromium wpt="perform_actions/pointer.py" >}}

A Pen is a type of pointer input that has most of the same behavior as a mouse, but can
also have event properties unique to a stylus. Additionally, while a mouse
has 5 buttons, a pen has 3 equivalent button states:
触控笔是一种指针输入设备,其行为大多与鼠标相同,
但也可以具有触控笔特有的事件属性。
此外,鼠标有 5 个按钮,而触控笔有 3 种等效的按钮状态:

* 0 — Touch Contact (the default; equivalent to a left click)
* 2 — Barrel Button (equivalent to a right click)
* 5 — Eraser Button (currently unsupported by drivers)
* 0 - 触摸接触(默认设置;相当于左键单击)
* 2 - 桶形按钮/侧键(相当于右键点击)
* 5 - 橡皮擦按钮(当前驱动程序不支持)

## Using a Pen
## 使用触控笔

{{< tabpane text=true >}}
{{< tab header="Java" >}}
Expand All @@ -42,7 +42,7 @@ has 5 buttons, a pen has 3 equivalent button states:
{{< /tab >}}
{{< /tabpane >}}

## Adding Pointer Event Attributes
## 添加指针事件属性

{{< badge-version version="4.2" >}}

Expand Down
Loading