Skip to content

Option to disable closing the editor by clicking outside the modal #126

Description

@IcerOut

Summary

Clicking or dragging outside the Compose editor modal closes it (or prompts to save changes). I'd like an option to disable this behavior.

Detailed description

When editing a Compose file, clicking or dragging the mouse outside the editor modal causes it to close (or prompts to save unsaved changes).

This happens quite easily when selecting or moving large blocks of text. If the cursor leaves the modal while dragging, the editor is dismissed, which interrupts editing. I've accidentally done this countless times

I'd like the option to disable closing the editor when clicking outside the modal (i.e. use a static backdrop). There are already several intentional ways to close it:

  • Close button (bottom right)
  • X button (top right)
  • Esc key (although this seems to be a bit buggy when there's unsaved changes? At least for me the Save changes dialog box disappears instantly)

A configurable setting (or even making the editor use a static backdrop by default) would be very much appreciated

Alternatives considered

Probably could do this in a hacky way with a browser userscript but it would probably break easily on UI changes

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions