Author: vmolotkov
Date: 2008-08-26 10:25:30 -0400 (Tue, 26 Aug 2008)
New Revision: 10191
Modified:
trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js
Log:
https://jira.jboss.org/jira/browse/RF-4270
Modified:
trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js
===================================================================
---
trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js 2008-08-26
11:24:53 UTC (rev 10190)
+++
trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselect.js 2008-08-26
14:25:30 UTC (rev 10191)
@@ -152,7 +152,9 @@
case Event.KEY_RETURN :
this.comboList.isList = false;
this.save();
- this.comboList.hideWithDelay();
+ if (!this.attributes.showControls) {
+ this.tempValueKeeper.blur();
+ }
Event.stop(event);
break;
case Event.KEY_DOWN :
@@ -167,6 +169,9 @@
this.comboList.resetSelection();
this.comboList.hideWithDelay();
this.cancel(event);
+ if (!this.attributes.showControls) {
+ this.tempValueKeeper.blur();
+ }
break;
case Event.KEY_TAB :
if (this.attributes.showControls) {