Skip to content

fix(settings): close Settings on a click outside the panel - #1879

Closed
pdwaldrop wants to merge 1 commit into
lgse:mainfrom
pdwaldrop:fix/1859-close-settings-on-an-outside-click
Closed

pdwaldrop wants to merge 1 commit into
lgse:mainfrom
pdwaldrop:fix/1859-close-settings-on-an-outside-click

Conversation

@pdwaldrop

@pdwaldrop pdwaldrop commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Description

Clicking outside the Settings panel did not close it. The backdrop click handler tested the click against the responsive bin that wraps the dialog. That bin fills the window and the dialog's margin lies inside it, so every click counted as inside the dialog and close_settings never ran. The Compress and other dialogs use the shared modal helper, which tests the dialog itself, and close as expected.

The handler now tests the click against the settings-dialog panel inside the bin, so the margin around it closes Settings and clicks on the panel still do not.

This covers one item of the keyboard and focus list in #1859, "Clicking outside Settings doesn't close it". The other items there are separate changes.

Visual evidence

N/A: no layout change. The difference is that a click on the backdrop closes Settings.

How to test

  1. Open Settings with Ctrl+,.
  2. Click on the dimmed backdrop outside the panel, such as the strip around its edge.

Expected result: Settings closes and focus returns to the file list. A click inside the panel leaves it open. Before this change nothing happened.

Covered by the QA scenario settings-closes-on-an-outside-click, which clicks inside the panel (it stays open) and then outside (it closes), and fails on the old code at the outside click. The Settings tests and scenarios, and dismissed-overlays-return-focus, pass.

Related issue

Part of #1859

The backdrop click handler tested the click against the responsive bin
around the dialog, which fills the window, so every click counted as inside
the dialog and none closed Settings. Test against the dialog panel, whose
margin is the area the backdrop shows.
@github-actions github-actions Bot added the fix label Oct 25, 2026
@pdwaldrop pdwaldrop mentioned this pull request Oct 25, 2026
1 of 5 tasks
@l0gicgate

Copy link
Copy Markdown
Contributor

I'm closing this, above/below the settings page it won't close but left/right of it, it definitely closes

screenrecording-2026-10-25_13-44-08.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants