Author: vmolotkov
Date: 2008-08-12 13:03:03 -0400 (Tue, 12 Aug 2008)
New Revision: 10055
Modified:
trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js
Log:
https://jira.jboss.org/jira/browse/RF-2423
Modified:
trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js
===================================================================
---
trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js 2008-08-12
14:24:08 UTC (rev 10054)
+++
trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js 2008-08-12
17:03:03 UTC (rev 10055)
@@ -155,8 +155,12 @@
this.cancel(e);
break;
case Event.KEY_RETURN :
- Event.stop(e);
- this.tempValueKeeper.blur();
+ if (this.attributes.showControls) {
+ this.okHandler(e);
+ } else {
+ Event.stop(e);
+ this.tempValueKeeper.blur();
+ }
break;
case Event.KEY_TAB :
this.save();
@@ -236,7 +240,7 @@
this.changeState(Richfaces.InplaceInput.STATES[2]);
- //this.createNewText(this.valueKeeper.value);
+ //this.createNewText(this.valueKeeper.value);1
this.createNewText(this.currentText);
this.inplaceInput.className = this.classes.COMPONENT.CHANGED.NORMAL;
},