Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Cleverson on Feb 22, 2009 18:31
open dhtmlx forum
DHTMLXCombo

When I set the Combox to readonly(true), if I press the BackSpace key, the page is refreshed.
How to avoid the backspace key acting as browse back function ?

Answer posted by Support on Feb 23, 2009 07:32
Combo doesn't block any key-events, when in readonly state, so it fully depends on browser behavior
You can try to add something similar to next

dhtmlxEvent(document.body, "keypress",function(e){
       if ((e||event).keyCode== some) { (e||event).cancelBubble=true; return false; }
});