Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dojox.grid.DataGrid delete key

Status
Not open for further replies.

jem122974

Programmer
Nov 1, 2001
114
US
I have a DataGrid that I connected a function to, based on the onkeypressed event. In my function I'm just alerting the charCode. For keys like delete and backspace it always returns zero, even though these are specified in the dojo.keys array.

My goal is to select a row and press delete to remove the row.

So how do I trap the delete key?

Thanks,
Jon
 
I just discovered that I need to check the keyCode and not the charCode. Now it traps the delete key...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top