Permalink
Browse files

<enter> wasn't handled correctly

  • Loading branch information...
1 parent a203560 commit 326af759580ac6ea378f1d8ac57af3acb64df405 @Dav1dde Dav1dde committed May 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/hw/keyboard.js
View
@@ -108,7 +108,7 @@ var DCPU16 = DCPU16 || {};
_.addEvent(document, 'keydown', function (e) {
var code = e.keyCode || e.which;
- if(code == 8) { // backspace
+ if(code == 8 || code == 13) { // backspace, enter
that.keyPress(e);
e.preventDefault();
}

0 comments on commit 326af75

Please sign in to comment.