Created
December 19, 2017 22:32
-
-
Save emmanuelbarturen/2e763e69a3827e7314c3e8ba6fba7d4b to your computer and use it in GitHub Desktop.
event handler keypress vuejs
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
created: function () { | |
window.addEventListener('keyup', (event)=> { | |
if (event.keyCode === 27) { | |
this.showEditor = false; | |
} | |
}); | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment