From ae004c882b68c083271f932d4406b96107e10e89 Mon Sep 17 00:00:00 2001 From: Jason Stallings Date: Sat, 19 Sep 2015 14:14:00 -0500 Subject: [PATCH] Added printscreen to CheckKeyCodes. --- src/robotjs.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/robotjs.cc b/src/robotjs.cc index e58c2f34..64167958 100644 --- a/src/robotjs.cc +++ b/src/robotjs.cc @@ -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);