[UX] Add Accessibility option to disable closing dialogs when clicking outside #3402
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds an Accessibility option to let users decide if they want the dialogs to be closed or not when clicking outside.
Clicking outside of dialogs currently (not in main but in the stable release) closes dialogs without any confirmation by the user. This is problematic because clicking outside by mistake can mean information is lost.
Current main branch disables the click outside to close the dialog, but some users might want that to work (it's a common thing to do).
This PR gives the users the option to pick which behavior they want.
One thing I noticed is that disabling the click outside also disables closing dialogs with the
Esc
key, so I added a handled for that too.Use the following Checklist if you have changed something on the Backend or Frontend: