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

Cannot "escape" out of the "Confirm Deletion" prompt when the Deleting Configuration button is pressed #6851

Closed
Qchristensen opened this issue Feb 8, 2017 · 5 comments · Fixed by #6884
Assignees
Labels
Addon/management In NVDA management of addons by users. feature/configuration-profiles p3 https://github.com/nvaccess/nvda/blob/master/projectDocs/issues/triage.md#priority z goodForNewDev (archived)
Milestone

Comments

@Qchristensen
Copy link
Member

In NVDA's Configuration profiles dialog, select a profile, and press alt+d or activate the "delete" button.

The "Confirm deletion" prompt appears. Options are Yes or No.

Pressing escape should select no and close the dialog without deleting, however it does nothing. There is no need for a "cancel" button as "No" performs the same function.

Not high priority, however potentially opens up possibility of inadvertently deleting a configuration profile if someone accidentally opens the delete prompt and thinks they have dismissed it with escape.

@josephsl
Copy link
Collaborator

josephsl commented Feb 8, 2017

Hi,

Confirmed.

Technical: gui.messageBox flags might be the culprit here.

Thanks.

@feerrenrut feerrenrut added the p3 https://github.com/nvaccess/nvda/blob/master/projectDocs/issues/triage.md#priority label Feb 8, 2017
@feerrenrut feerrenrut self-assigned this Feb 13, 2017
@feerrenrut
Copy link
Contributor

Looks like this is because we are using wx.YES | wx.NO flags with the message box.
The wx docs for messageBox specifies:

It is recommended to always use wxCANCEL with this style as otherwise the message box won't have a close button under wxMSW and the user will be forced to answer it.

Adding wx.CANCEL allows the dialog to be dismissed with the esc key

@Qchristensen
Copy link
Member Author

Qchristensen commented Feb 13, 2017 via email

@feerrenrut
Copy link
Contributor

Adding wx.CANCEL results in three buttons (yes, no, and cancel). Rather than do that I have re-worded the sentence, swapped to use the ok/cancel buttons. The message box will now say:

This profile will be permanently deleted, this action cannot be undone.

@Qchristensen
Copy link
Member Author

Qchristensen commented Feb 13, 2017 via email

feerrenrut added a commit that referenced this issue Feb 13, 2017
feerrenrut added a commit that referenced this issue Feb 14, 2017
for issue #6851
Merge branch 'i6851-escapeFromDeleteConf' into next
@nvaccessAuto nvaccessAuto added this to the 2017.2 milestone Mar 14, 2017
feerrenrut added a commit that referenced this issue Mar 14, 2017
Pressing `ESC` while the configuration profile "Confirm Deletion" prompt is active now dismisses the dialog. To do this, the wording was changed, and the `yes/no` buttons were replaced with `ok/cancel` buttons.

Fixes #6851
feerrenrut added a commit that referenced this issue Mar 14, 2017
For PR #6761 - Web page menu items (menu item checkbox's and radio buttons) can now be activated while in browse mode.  Issue #6735
For PR #6866 - Excel sheet name reporting is now translated. Issue #6848
For PR #6884 - Pressing ESC while the configuration profile "Confirm Deletion" prompt is active now dismisses the dialog. Issue #6851
For PR #6895 - Cell border information can now be reported in Microsoft Excel by using `NVDA+f`. Issue #3044
For PR #6860 - Added support for aria-current attributes. Issue #6358
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Addon/management In NVDA management of addons by users. feature/configuration-profiles p3 https://github.com/nvaccess/nvda/blob/master/projectDocs/issues/triage.md#priority z goodForNewDev (archived)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants