Accept all printable characters

This commit is contained in:
Ulrich Sossou 2014-08-20 14:09:47 +01:00
parent ac7ceedd83
commit 9d8cd6ebb2

View file

@ -67,7 +67,8 @@ fabric.util.object.extend(fabric.IText.prototype, /** @lends fabric.IText.protot
return;
}
e.stopPropagation();
e.stopImmediatePropagation();
e.preventDefault();
this.canvas && this.canvas.renderAll();
},
@ -149,7 +150,7 @@ fabric.util.object.extend(fabric.IText.prototype, /** @lends fabric.IText.protot
* @param {Event} e Event object
*/
onKeyPress: function(e) {
if (!this.isEditing || e.metaKey || e.ctrlKey || e.keyCode in this._keysMap) {
if (!this.isEditing || e.metaKey || e.ctrlKey) {
return;
}