mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-01 14:43:55 +00:00
add key "capslock" support and update code style
This commit is contained in:
parent
14a50deec6
commit
6f9b1354dc
@ -43,6 +43,7 @@
|
|||||||
"ctrl"
|
"ctrl"
|
||||||
"control"
|
"control"
|
||||||
"shift"
|
"shift"
|
||||||
|
"capslock"
|
||||||
"right_shift"
|
"right_shift"
|
||||||
"space"
|
"space"
|
||||||
"printscreen" No Mac support
|
"printscreen" No Mac support
|
||||||
|
@ -34,6 +34,7 @@ struct KeyNames{
|
|||||||
{ "end", K_END },
|
{ "end", K_END },
|
||||||
{ "pageup", K_PAGEUP },
|
{ "pageup", K_PAGEUP },
|
||||||
{ "pagedown", K_PAGEDOWN },
|
{ "pagedown", K_PAGEDOWN },
|
||||||
|
//
|
||||||
{ "f1", K_F1 },
|
{ "f1", K_F1 },
|
||||||
{ "f2", K_F2 },
|
{ "f2", K_F2 },
|
||||||
{ "f3", K_F3 },
|
{ "f3", K_F3 },
|
||||||
@ -58,11 +59,13 @@ struct KeyNames{
|
|||||||
{ "f22", K_F22 },
|
{ "f22", K_F22 },
|
||||||
{ "f23", K_F23 },
|
{ "f23", K_F23 },
|
||||||
{ "f24", K_F24 },
|
{ "f24", K_F24 },
|
||||||
|
//
|
||||||
{ "command", K_META },
|
{ "command", K_META },
|
||||||
{ "alt", K_ALT },
|
{ "alt", K_ALT },
|
||||||
{ "ctrl", K_CONTROL },
|
{ "ctrl", K_CONTROL },
|
||||||
{ "control", K_CONTROL },
|
{ "control", K_CONTROL },
|
||||||
{ "shift", K_SHIFT },
|
{ "shift", K_SHIFT },
|
||||||
|
{ "capslock", K_CAPSLOCK },
|
||||||
{ "right_shift", K_RIGHTSHIFT },
|
{ "right_shift", K_RIGHTSHIFT },
|
||||||
{ "space", K_SPACE },
|
{ "space", K_SPACE },
|
||||||
{ "printscreen", K_PRINTSCREEN },
|
{ "printscreen", K_PRINTSCREEN },
|
||||||
|
Loading…
Reference in New Issue
Block a user