Settings: ESC requires two presses to close (first press focuses search field)

Steps to reproduce

  1. Open Settings
  2. Navigate to any settings tab with vertical-tab-content (e.g. Appearance, Community plugins, or Core plugins > File recovery)
  3. Click directly inside the vertical-tab-content area with the mouse (do not use keyboard/Tab to navigate) to place focus on an input
  4. Press ESC once

Did you follow the troubleshooting guide? [Y/N]

Yes

Expected result

Settings window closes with a single ESC press, the same as when navigating via keyboard from the start.

Actual result

The first ESC press moves focus to the Settings search field instead of closing the window; a second ESC press is then required to actually close Settings.

Environment

SYSTEM INFO:
Obsidian version: 1.13.2
Installer version: 1.12.7
Operating system: Darwin Kernel Version 25.5.0: Tue Jun  9 22:28:34 PDT 2026; root:xnu-12377.121.10~1/RELEASE_ARM64_T6041 25.5.0
Login status: logged in
Language: en
Catalyst license: insider
Insider build toggle: on
Live preview: on
Base theme: light
Community theme: none
Snippets enabled: 0
Restricted mode: on

RECOMMENDATIONS:
none

Additional information

Dev acknowledged in Discord that this is expected given the new Settings API’s focus-management behavior, but agreed it feels clunky and asked me to file this report for tracking.

This appears related to a similar focus-handling issue reported in another thread involving Tab navigation regressions in the same new settings components: forum.obsidian.md/t/unable-to-tab-through-inputs-in-settings/115335

Note: “Open settings in new window” is disabled in my setup, so Settings runs embedded in the main app window rather than as a separate OS window. Have not tested whether this behavior differs with that option enabled.

Follow-up from dev: In a later Discord message, the dev suggested adding a separate hotkey (distinct from Escape) that would always close the Settings window.

I’d personally prefer a setting/toggle over a new hotkey, for a few reasons:

  • A new hotkey adds another shortcut to remember and doesn’t resolve the core inconsistency of ESC behaving differently depending on where focus lands (e.g. jumping to the search field first instead of closing directly).
  • A toggle such as “Close Settings with Escape” would preserve the current step-back ESC behavior by default (useful when navigating nested settings, e.g. plugin details), while letting users who find the multi-press flow clunky opt into instant-close behavior.
  • This mirrors a similar prior request asking for Cmd+W to close the Settings pane, where a configurable option was also the proposed direction: forum.obsidian.md/t/cmd-w-should-close-the-settings-pane/71968

Thanks