search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

How to delete an selected element with a supr keypress

Asked by Satatic
12 years ago.

Hi I'm trying to delete a Event when I press the supr key, I want to know if it's posible to do this

Thank's

Answer posted by Dan Letecky
12 years ago.

This is difficult to do. It would be possible to catch the keydown/keypress event but since there is no focusable element it would be necessary to do it for the window object. This could potentially disrupt behavior of standard controls on the page (like <input>).

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.