Skip to content

Commit

Permalink
Merge pull request #61 from ram170/master
Browse files Browse the repository at this point in the history
Fix bug when running code through hotkey #49
  • Loading branch information
BrandonArmand authored Oct 17, 2020
2 parents 2c6a0a9 + 60096ab commit df93b4c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/views/Playground/Playground.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ function Playground(props) {
document.onkeydown = function (e) {
//CTRL + ENTER to run code
if (e.ctrlKey && e.keyCode === 13) {
e.preventDefault();
document.getElementById("btnRunCode").click();
}
//CTRL + ALT + R to Reset code
Expand Down

0 comments on commit df93b4c

Please sign in to comment.