PDA

View Full Version : Delete event not working in Internet Explorer



sbodanapu
2 May 2012, 4:28 AM
Following is my code.. this code is working in firefox but not working in Internet Explorer.Even i have tried with ASCII codes of both delete and backspace i.e 46 and 8 respectively..but still getting the same problem..

The interesting point is that event.ENTER is working successfully even with the ASCII code 13.

else if((event.getKey()==event.BACKSPACE)||(event.getKey()==event.DELETE)){
Ext.MessageBox.confirm('Confirm','Do you want to delete the menu values',function(btn){
if(btn=='yes'){
field.setValue("");
editDate();
}
});
}

Please help.....its been a headache for me for the past two days now

Thanks in Advance,
Sandeep

jay@moduscreate.com
15 May 2012, 4:42 AM
Sandeep, try registering a generic key press handler. Inspect what key code is being fired for delete/backspace.