From: Alan Knowles Date: Thu, 10 Feb 2011 09:53:25 +0000 (+0800) Subject: docs/symbols/src/Roo_Editor.js.html X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=0f91d0f78bedc1286d1fe29d7f7269ad4b35e4e9 docs/symbols/src/Roo_Editor.js.html --- diff --git a/docs/symbols/src/Roo_Editor.js.html b/docs/symbols/src/Roo_Editor.js.html index 1b354a1a31..2ea552643f 100644 --- a/docs/symbols/src/Roo_Editor.js.html +++ b/docs/symbols/src/Roo_Editor.js.html @@ -151,16 +151,24 @@ } }, - onSpecialKey : function(field, e){ + onSpecialKey : function(field, e) + { //Roo.log('editor onSpecialKey'); if(this.completeOnEnter && e.getKey() == e.ENTER){ e.stopEvent(); this.completeEdit(); - }else if(this.cancelOnEsc && e.getKey() == e.ESC){ - this.cancelEdit(); - }else{ - this.fireEvent('specialkey', field, e); + return; } + // do not fire special key otherwise it might hide close the editor... + if(e.getKey() == e.ENTER){ + return; + } + if(this.cancelOnEsc && e.getKey() == e.ESC){ + this.cancelEdit(); + return; + } + this.fireEvent('specialkey', field, e); + }, /**