Skip to content

Commit ed45411

Browse files
committed
Update godoc
1 parent 149d0f8 commit ed45411

File tree

1 file changed

+119
-0
lines changed

1 file changed

+119
-0
lines changed

doc.go

Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
// Copyright 2016 The go-vgo Project Developers. See the COPYRIGHT
2+
// file at the top-level directory of this distribution and at
3+
// https://github.com/go-vgo/robotgo/blob/master/LICENSE
4+
//
5+
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6+
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8+
// option. This file may not be copied, modified, or distributed
9+
// except according to those terms.
10+
11+
package robotgo
12+
13+
/*
14+
Keys are supported:
15+
"A-Z a-z 0-9"
16+
17+
"backspace"
18+
"delete"
19+
"enter"
20+
"tab"
21+
"esc"
22+
"escape"
23+
"up" Up arrow key
24+
"down" Down arrow key
25+
"right" Right arrow key
26+
"left" Left arrow key
27+
"home"
28+
"end"
29+
"pageup"
30+
"pagedown"
31+
32+
"f1"
33+
"f2"
34+
"f3"
35+
"f4"
36+
"f5"
37+
"f6"
38+
"f7"
39+
"f8"
40+
"f9"
41+
"f10"
42+
"f11"
43+
"f12"
44+
"f13"
45+
"f14"
46+
"f15"
47+
"f16"
48+
"f17"
49+
"f18"
50+
"f19"
51+
"f20"
52+
"f21"
53+
"f22"
54+
"f23"
55+
"f24"
56+
57+
"cmd" is the "win" key for windows
58+
"lcmd" left command
59+
"rcmd" right command
60+
// "command"
61+
"alt"
62+
"lalt" left alt
63+
"ralt" right alt
64+
"ctrl"
65+
"lctrl" left ctrl
66+
"rctrl" right ctrl
67+
"control"
68+
"shift"
69+
"lshift" left shift
70+
"rshift" right shift
71+
// "right_shift"
72+
"capslock"
73+
"space"
74+
"print"
75+
"printscreen" // No Mac support
76+
"insert"
77+
"menu" Windows only
78+
79+
"audio_mute" Mute the volume
80+
"audio_vol_down" Lower the volume
81+
"audio_vol_up" Increase the volume
82+
"audio_play"
83+
"audio_stop"
84+
"audio_pause"
85+
"audio_prev" Previous Track
86+
"audio_next" Next Track
87+
"audio_rewind" Linux only
88+
"audio_forward" Linux only
89+
"audio_repeat" Linux only
90+
"audio_random" Linux only
91+
92+
93+
"num0"
94+
"num1"
95+
"num2"
96+
"num3"
97+
"num4"
98+
"num5"
99+
"num6"
100+
"num7"
101+
"num8"
102+
"num9"
103+
"num_lock"
104+
105+
"num."
106+
"num+"
107+
"num-"
108+
"num*"
109+
"num/"
110+
"num_clear"
111+
"num_enter"
112+
"num_equal"
113+
114+
"lights_mon_up" Turn up monitor brightness No Windows support
115+
"lights_mon_down" Turn down monitor brightness No Windows support
116+
"lights_kbd_toggle" Toggle keyboard backlight on/off No Windows support
117+
"lights_kbd_up" Turn up keyboard backlight brightness No Windows support
118+
"lights_kbd_down" Turn down keyboard backlight brightness No Windows support
119+
*/

0 commit comments

Comments
 (0)