Created
August 9, 2019 09:08
-
-
Save rockiger/3ef406fb7971f2f8f94ec4970e010466 to your computer and use it in GitHub Desktop.
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
onContextMenu(event) { | |
event.preventDefault(); | |
this.menu.popup({ window: remote.getCurrentWindow() }); | |
} | |
... | |
<textarea id="TextField" onKeyDown={this.onInput} onContextMenu={this.onContextMenu} /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment