projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ddaf5ad
)
Roo/Editor.js
author
Alan Knowles
<alan@akbkhome.com>
Wed, 19 Jan 2011 07:26:01 +0000
(15:26 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Wed, 19 Jan 2011 07:26:01 +0000
(15:26 +0800)
Roo/Editor.js
patch
|
blob
|
history
diff --git
a/Roo/Editor.js
b/Roo/Editor.js
index
c5efc5b
..
3ac6b56
100644
(file)
--- a/
Roo/Editor.js
+++ b/
Roo/Editor.js
@@
-156,11
+156,17
@@
Roo.extend(Roo.Editor, Roo.Component, {
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;
}
+ if(e.getKey() == e.ENTER){
+ return;
+ }
+ if(this.cancelOnEsc && e.getKey() == e.ESC){
+ this.cancelEdit();
+ return;
+ }
+ this.fireEvent('specialkey', field, e);
+
},
/**