Permalink
Browse files

Insert one char strings

When there was only one character in the character reader it would
throw an error so nothing was inserted in the editor. The result is
only every second key press would work
  • Loading branch information...
1 parent 4c553f5 commit 8c8fb7dbd5d7ab13c9a28de6207f220fb270440f @rhburrows committed Jun 28, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/input.js
View
@@ -111,7 +111,7 @@
setTimeout(function(){
var s = $(characterReader).val();
if (s.length == 1) {
- editor.insertChar(c);
+ editor.insertChar(s);
} else if (s.length > 1) {
editor.insertString(s);
}

0 comments on commit 8c8fb7d

Please sign in to comment.