Warn before discarding entered work
HardAdapts
Rule. Ask before closing a screen that holds unsaved input, and name what the person will lose.
Wide screen. On a wide screen, also warn when the window or tab closes with unsaved input. (Triggers: Fine pointer, Keyboard)
Why. A stray press on close or back can destroy minutes of work.
When not. Do not ask when the screen is empty or the app saves a draft on its own.
- Offer "Keep editing" as the safe choice.
- Say what is lost: "You will lose 3 notes."
- Dialog words: Rule 9.12. Window close: Rule 13.13.
Do. The dialog names the loss and offers Keep editing.
Don't. Pressing close dropped the note with no question.
Size pair. The phone asks on close. The window also asks on window close.