Skip to content

Commit

Permalink
printscreen is only supported on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
octalmage committed Sep 19, 2015
1 parent ae004c8 commit 09d8b21
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/robotjs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,11 @@ int CheckKeyCodes(char* k, MMKeyCode *key)
}
else if (strcmp(k, "printscreen") == 0)
{
*key = K_PRINTSCREEN;
#if defined(IS_WINDOWS)
*key = K_PRINTSCREEN;
#else
NanThrowError("printscreen is only supported on Windows.");
#endif
}
else if (strlen(k) == 1)
{
Expand Down

0 comments on commit 09d8b21

Please sign in to comment.