Skip to content

Commit

Permalink
Update robotjs.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyusung4698 committed Jan 25, 2020
1 parent 11a5b4d commit 81ca630
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/robotjs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -514,10 +514,11 @@ NAN_METHOD(keyTap)
return Nan::ThrowError("Invalid key code specified.");
break;
default:
toggleKeyCode(key, true, flags)
microsleep(keyboardDelay);
toggleKeyCode(key, false, flags)
microsleep(keyboardDelay);
toggleKeyCode(key, true, flags);
microsleep(keyboardDelay);
toggleKeyCode(key, false, flags);
microsleep(keyboardDelay);
break;
}

info.GetReturnValue().Set(Nan::New(1));
Expand Down

0 comments on commit 81ca630

Please sign in to comment.