From 41e969e2a44a7384eafb18a63e4138255673e36a Mon Sep 17 00:00:00 2001 From: Gelin Luo Date: Sat, 21 May 2016 08:30:17 +1000 Subject: [PATCH] fix #24: It does not allow me to type in Chinese characters --- src/Editor.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/Editor.js b/src/Editor.js index 384ca21..b40c7f6 100644 --- a/src/Editor.js +++ b/src/Editor.js @@ -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){