From 0f91d0f78bedc1286d1fe29d7f7269ad4b35e4e9 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 10 Feb 2011 17:53:25 +0800 Subject: [PATCH] docs/symbols/src/Roo_Editor.js.html --- docs/symbols/src/Roo_Editor.js.html | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) 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); + }, /** -- 2.39.2