File tree Expand file tree Collapse file tree 2 files changed +14
-15
lines changed
website_and_docs/content/documentation/webdriver/actions_api Expand file tree Collapse file tree 2 files changed +14
-15
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- title : " Mouse actions "
3
- linkTitle : " Mouse "
2
+ title : " 鼠标操作 "
3
+ linkTitle : " 鼠标 "
4
4
weight : 4
5
- needsTranslation : true
6
5
description : >
7
- A representation of any pointer device for interacting with a web page .
6
+ 任何用于与网页进行交互的指针设备的表示形式 .
8
7
aliases : [
9
8
" /documentation/zh-cn/support_packages/mouse_and_keyboard_actions_in_detail/" ,
10
9
" /zh-cn/documentation/support_packages/mouse_and_keyboard_actions_in_detail/"
Original file line number Diff line number Diff line change 1
1
---
2
- title : " Pen actions "
3
- linkTitle : " Pen "
2
+ title : " 触控笔操作 "
3
+ linkTitle : " 触控笔 "
4
4
weight : 5
5
5
description : >
6
- A representation of a pen stylus kind of pointer input for interacting with a web page .
6
+ 一种用于与网页交互的类似笔尖的指针输入设备的表示 .
7
7
---
8
8
9
9
{{< badge-browser browser=Chromium wpt="perform_actions/pointer.py" >}}
10
10
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 种等效的按钮状态 :
14
14
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 - 橡皮擦按钮(当前驱动程序不支持)
18
18
19
- ## Using a Pen
19
+ ## 使用触控笔
20
20
21
21
{{< tabpane text=true >}}
22
22
{{< tab header="Java" >}}
@@ -42,7 +42,7 @@ has 5 buttons, a pen has 3 equivalent button states:
42
42
{{< /tab >}}
43
43
{{< /tabpane >}}
44
44
45
- ## Adding Pointer Event Attributes
45
+ ## 添加指针事件属性
46
46
47
47
{{< badge-version version="4.2" >}}
48
48
You can’t perform that action at this time.
0 commit comments