PDA

View Full Version : How to find the key entered is '?' in a combobox



raj542
5 Apr 2012, 6:18 AM
Hi ,

Can anyone please tell how to find whether the key entered in a combobox is '?'(question mark).

I tried e.getKey()==e.QUESTION..but it didnt worked for me.

Thanks for the people who replied

scottmartin
5 Apr 2012, 8:43 AM
Please try the following



keypress: function(combo, e) {
var charCode = e.getCharCode();
if ( e.shiftKey && charCode === 63 ) {
alert('???');
}
}


Regards,
Scott.

khmurach
5 Apr 2012, 9:38 AM
Do not forget enableKeyEvents: true
Demo here http://ext4all.com/post/combobox-keypress-event