Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions src/Editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,14 @@ Editor.prototype.keyup = function(evt){
return;
}

if([
33, 34, // PgUp, PgDn
35, 36, // End, Home
37, 39, 38, 40 // Left, Right, Up, Down
].indexOf(keyCode) === -1) {
this.changed();
}
// comment out to fix issue #24: It doesn't allow me to type in Chinese characters
// if([
// 33, 34, // PgUp, PgDn
// 35, 36, // End, Home
// 37, 39, 38, 40 // Left, Right, Up, Down
// ].indexOf(keyCode) === -1) {
// this.changed();
// }
};

Editor.prototype.changed = function(evt){
Expand Down