Permalink
Browse files

Fixed a bug in the input, made it work on Enter, added max-length.

  • Loading branch information...
1 parent ebbdf3f commit 4b0eca70c1f0298ac54210a67d9fb6bc23804c64 @dwillie dwillie committed Aug 11, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 index.html
  2. +1 −1 js/views.js
View
@@ -30,7 +30,7 @@
<a class="button hidden" href="#" id="continue">Continue</a>
<span id="input-box">
<label>Waiting for input</label>
- <input type="text" id="input"/>
+ <input type="text" id="input" maxlength="1"/>
</span>
</div>
<div contenteditable="true" id="source">+++++ +++++ initialize counter (cell #0) to 10
View
@@ -58,7 +58,7 @@ var InterpreterView = Backbone.View.extend({
"click #continue": "continue",
"click #stop": "stop",
"keyup #source": "sourceChange",
- "keyup #input": "recieveInput"
+ "change #input": "recieveInput"
},
render: function () {
this.input = this.$el.find("#input");

0 comments on commit 4b0eca7

Please sign in to comment.