Skip to content

Commit

Permalink
Remove extra spaces.
Browse files Browse the repository at this point in the history
  • Loading branch information
octalmage committed Dec 29, 2015
1 parent f653b92 commit 2ad647b
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/robotjs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -384,27 +384,27 @@ int CheckKeyFlags(char* f, MMKeyFlags* flags)
if (strcmp(f, "alt") == 0)
{
*flags = MOD_ALT;
}
else if(strcmp(f, "command") == 0)
}
else if(strcmp(f, "command") == 0)
{
*flags = MOD_META;
}
else if(strcmp(f, "control") == 0)
}
else if(strcmp(f, "control") == 0)
{
*flags = MOD_CONTROL;
}
else if(strcmp(f, "shift") == 0)
}
else if(strcmp(f, "shift") == 0)
{
*flags = MOD_SHIFT;
}
else if(strcmp(f, "none") == 0)
{
*flags = MOD_NONE;
}
else
}
else
{
return -2;
}
}

return 0;
}
Expand Down Expand Up @@ -446,10 +446,10 @@ NAN_METHOD(keyTap)
MMKeyFlags flags = MOD_NONE;
MMKeyCode key;

char *k;
char *k;

v8::String::Utf8Value kstr(info[0]->ToString());
k = *kstr;
v8::String::Utf8Value kstr(info[0]->ToString());
k = *kstr;

switch (info.Length())
{
Expand Down

0 comments on commit 2ad647b

Please sign in to comment.