Hi @Roy Kushner,
Thank you for reaching out and for sharing your concern in detail.
To answer your question directly, there is no way to turn off the ESC key on its own. Outlook does not expose individual shortcuts as separate toggles, so a single key like ESC cannot be remapped or disabled in isolation. The only built in control is an all or nothing switch that turns off the entire keyboard shortcut set at once, which means ESC stops discarding your draft but every other shortcut stops working as well.
If turning everything off is an acceptable trade for you, here is where the setting lives in new Outlook for Windows:
- Open new Outlook and go to Settings.
- Select General, then Accessibility.
- Under Keyboard shortcuts, choose Turn off keyboard shortcuts.

- Click Save.
For the attachment scenario you raised, edits made inline are auto saved to the Drafts folder, so even when the discard prompt appears, a recent copy of the message can often be recovered from Drafts.
I hope this information is helpful. Please follow the steps above and let me know if it works for you. If not, we can continue working together to resolve the issue.
Thank you for your patience and understanding. If you have any questions or need additional assistance, please don’t hesitate to reach out so I can continue to support you. If you found the response useful, please consider marking it as accepted, as this may help other community members who are looking for similar guidance.
I look forward to continuing the conversation.
If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.