Author: vmolotkov
Date: 2008-01-11 13:46:16 -0500 (Fri, 11 Jan 2008)
New Revision: 5316
Modified:
trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combobox.js
Log:
key-del is added
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-11
18:14:46 UTC (rev 5315)
+++
trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combobox.js 2008-01-11
18:46:16 UTC (rev 5316)
@@ -138,9 +138,9 @@
this.comboList.hide();
Event.stop(event);
break;
- case Event.KEY_BACKSPACE :
- this.comboList.hide();
- break;
+ //case Event.KEY_BACKSPACE :
+ // this.comboList.hide();
+ // break;
case Event.KEY_DOWN :
this.comboList.moveActiveItem(event);
break;
@@ -194,7 +194,7 @@
}
}
- if ((event.keyCode != Event.KEY_BACKSPACE) && isSearchSuccessful) {
+ if (((event.keyCode != Event.KEY_BACKSPACE) && (event.keyCode !=
Event.KEY_DELETE)) && isSearchSuccessful) {
this.setValue();
}
}
Show replies by date