Skip to content

Commit fae7b1e

Browse files
authored
docs: translate pen and mouse as Chinese (#2413)
* docs: translate pen and mouse as Chinese * docs: translate pen and mouse as Chinese
1 parent 8938e8a commit fae7b1e

File tree

2 files changed

+14
-15
lines changed

2 files changed

+14
-15
lines changed

website_and_docs/content/documentation/webdriver/actions_api/mouse.zh-cn.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
---
2-
title: "Mouse actions"
3-
linkTitle: "Mouse"
2+
title: "鼠标操作"
3+
linkTitle: "鼠标"
44
weight: 4
5-
needsTranslation: true
65
description: >
7-
A representation of any pointer device for interacting with a web page.
6+
任何用于与网页进行交互的指针设备的表示形式.
87
aliases: [
98
"/documentation/zh-cn/support_packages/mouse_and_keyboard_actions_in_detail/",
109
"/zh-cn/documentation/support_packages/mouse_and_keyboard_actions_in_detail/"

website_and_docs/content/documentation/webdriver/actions_api/pen.zh-cn.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
---
2-
title: "Pen actions"
3-
linkTitle: "Pen"
2+
title: "触控笔操作"
3+
linkTitle: "触控笔"
44
weight: 5
55
description: >
6-
A representation of a pen stylus kind of pointer input for interacting with a web page.
6+
一种用于与网页交互的类似笔尖的指针输入设备的表示.
77
---
88

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

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

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

19-
## Using a Pen
19+
## 使用触控笔
2020

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

45-
## Adding Pointer Event Attributes
45+
## 添加指针事件属性
4646

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

0 commit comments

Comments
 (0)