Phenomenon
In Firefox on Linux, the Delete key behaves differently from Backspace in ways that are inconsistent. Delete may remove different amounts of text or behave unexpectedly compared to Backspace.
Reproduction example
- Create a contenteditable div.
- Type some text.
- Place the caret in the middle of the text.
- Press Backspace and observe what is deleted.
- Press Delete and observe what is deleted.
- Compare the behaviors.
Observed behavior
- In Firefox on Linux, Delete and Backspace may delete different amounts of text.
- The granularity of deletion may be inconsistent.
- Delete may behave unexpectedly in certain contexts.
Expected behavior
- Delete should remove the character after the caret (forward deletion).
- Backspace should remove the character before the caret (backward deletion).
- Both should have consistent, predictable behavior.