Author: vmolotkov
Date: 2008-01-16 09:14:05 -0500 (Wed, 16 Jan 2008)
New Revision: 5421
Modified:
trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combobox.js
Log:
support of ESC
Modified:
trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combobox.js
===================================================================
---
trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combobox.js 2008-01-16
14:09:05 UTC (rev 5420)
+++
trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combobox.js 2008-01-16
14:14:05 UTC (rev 5421)
@@ -159,6 +159,9 @@
case Event.KEY_UP :
this.comboList.moveActiveItem(event);
break;
+ case Event.KEY_ESC :
+ this.comboList.hideWithDelay();
+ break;
}
},
@@ -682,5 +685,5 @@
}
Richfaces.ComboBox.SPECIAL_KEYS = [
- Event.KEY_RETURN, Event.KEY_UP, Event.KEY_DOWN, Event.KEY_RIGHT, Event.KEY_LEFT
+ Event.KEY_RETURN, Event.KEY_UP, Event.KEY_DOWN, Event.KEY_RIGHT, Event.KEY_LEFT,
Event.KEY_ESC
]
\ No newline at end of file