Created
April 15, 2020 17:12
-
-
Save AirStair/7bd74b050e24984ff331dabd812a83c9 to your computer and use it in GitHub Desktop.
nightmare js keyboard codes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
browserWindow.webContents.sendInputEvent({ | |
type: "keyDown", | |
keyCode: '\u0008' | |
}); | |
browserWindow.webContents.sendInputEvent({ | |
type: "keyUp", | |
keyCode: '\u0008' | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment