Skip to content

Instantly share code, notes, and snippets.

@jdkato
Last active June 15, 2020 03:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jdkato/132e0b05beeee5d4d7095f3587247526 to your computer and use it in GitHub Desktop.
Save jdkato/132e0b05beeee5d4d7095f3587247526 to your computer and use it in GitHub Desktop.
document.getElementsByClassName('ReactBash').getElementsByTagName('input').onkeydown = function (evt) {
if (evt.which === 13) {
evt.preventDefault();
evt.stopPropagation();
return false;
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment