We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64e0ecf commit 69ab661Copy full SHA for 69ab661
src/robotjs.cc
@@ -284,7 +284,8 @@ NAN_METHOD(scrollMouse)
284
|_|\_\___|\__, |_.__/ \___/ \__,_|_| \__,_|
285
|___/
286
*/
287
-struct KeyNames {
+struct KeyNames
288
+{
289
const char* name;
290
MMKeyCode key;
291
};
@@ -358,7 +359,8 @@ int CheckKeyCodes(char* k, MMKeyCode *key)
358
359
*key = K_NOT_A_KEY;
360
361
KeyNames* kn = key_names;
- while (kn->name) {
362
+ while (kn->name)
363
+ {
364
if (strcmp(k, kn->name) == 0)
365
{
366
*key = kn->key;
@@ -367,7 +369,8 @@ int CheckKeyCodes(char* k, MMKeyCode *key)
367
369
kn++;
368
370
}
371
- if (*key == K_NOT_A_KEY) {
372
+ if (*key == K_NOT_A_KEY)
373
374
return -2;
375
376
0 commit comments