I’m building a Firefox extension and would like to allow the user to delete objects from the tree with the delete key. I currently call a function when the user presses a button, but would like to allow them to just press the delete key on their keyboard.
Share
Actually, I figured it out. I added this to the tree element in the XUL:
Here is my Javascript: