Skip to content

Commit

Permalink
Added printscreen to CheckKeyCodes.
Browse files Browse the repository at this point in the history
  • Loading branch information
octalmage committed Sep 19, 2015
1 parent 61b0584 commit ae004c8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/robotjs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,10 @@ int CheckKeyCodes(char* k, MMKeyCode *key)
{
*key = K_F12;
}
else if (strcmp(k, "printscreen") == 0)
{
*key = K_PRINTSCREEN;
}
else if (strlen(k) == 1)
{
*key = keyCodeForChar(*k);
Expand Down

0 comments on commit ae004c8

Please sign in to comment.