Improvements to the discard action.

- It works again in manual detection mode.
- It is associated to both the supr and backspace keys.