add key "capslock" support and update code style

This commit is contained in:
vcaesar 2018-12-11 12:10:42 -04:00
parent 14a50deec6
commit 6f9b1354dc
2 changed files with 5 additions and 1 deletions

View File

@ -43,6 +43,7 @@
"ctrl"
"control"
"shift"
"capslock"
"right_shift"
"space"
"printscreen" No Mac support

View File

@ -34,6 +34,7 @@ struct KeyNames{
{ "end", K_END },
{ "pageup", K_PAGEUP },
{ "pagedown", K_PAGEDOWN },
//
{ "f1", K_F1 },
{ "f2", K_F2 },
{ "f3", K_F3 },
@ -58,11 +59,13 @@ struct KeyNames{
{ "f22", K_F22 },
{ "f23", K_F23 },
{ "f24", K_F24 },
//
{ "command", K_META },
{ "alt", K_ALT },
{ "ctrl", K_CONTROL },
{ "ctrl", K_CONTROL },
{ "control", K_CONTROL },
{ "shift", K_SHIFT },
{ "capslock", K_CAPSLOCK },
{ "right_shift", K_RIGHTSHIFT },
{ "space", K_SPACE },
{ "printscreen", K_PRINTSCREEN },