Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V8: Disable the escape key in the "unsaved changes" dialog #5461

Merged

Conversation

kjac
Copy link
Contributor

@kjac kjac commented May 14, 2019

Prerequisites

  • I have added steps to test this contribution in the description below

Description

The default ESC action for overlays is to close the dialog. Unfortunately for the "unsaved changes" this means you accept to discard the changes:

image

This PR explicitly disables the use of ESC in the "unsaved changes" dialog (the dialog can't be closed by clicking the backdrop either).

Testing this PR

  1. Make some changes to some content.
  2. Navigate away without saving the changes.
  3. Hit ESC in the "unsaved changes" dialog.
  4. Verify that ESC performs no action.

@emmaburstow
Copy link
Contributor

Hi @kjac

This is a brilliant change and it might just save some people from having to swear at their screens ;)

Speak soon,

Em

@nul800sebastiaan nul800sebastiaan merged commit 0ea4864 into umbraco:v8/dev May 19, 2019
@nul800sebastiaan
Copy link
Member

Wonderful! 👍

@kjac kjac deleted the v8-fix-confirm-discard-esc-key branch May 19, 2019 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants