Remove cursor focus when Obsidian loses application focus

Currently obsidian always retains the cursor position after it loses focus. This is usually convenient, but can be problematic with drop downs. For example when changing a property value or entering something into the vault search input will show a big dropdown. When you unfocus obsidian this dropdown will be hidden. Now when you focus obsidian again with a click where the dropdown was it will select an entry from it. This is especially confusing because obsidian will still show highlights when you hover over eg. other properties, implying you will be able to click on them.

Recording2026-08-24162959-ezgif.com-video-to-gif-converter

To solve this I would suggest to either lose focus in these input fields when going out of obsidian or to keep showing the dropdowns even when unfocused.

Steps to reproduce

  1. Open any input field that shows a drop down
  2. Unfocus obsidian by going to some other program
  3. Refocus obsidian by clicking where the drop down was before

Did you read and follow the Troubleshooting Guide ? Yes

Expected result

The input I actually wanted to make should happen, like changing what property I am currently editing.

Actual result

A drop down element was selected that wasn’t even visible.

Environment

SYSTEM INFO:
Obsidian version: 1.13.5
Installer version: 1.12.7
Operating system: Windows 11 Pro 10.0.26200
Login status: logged in
Language: en
Catalyst license: insider
Insider build toggle: on
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: off
Plugins installed: 4
Plugins enabled: 3
1: TaskNotes v4.0.1
2: Chess Study v1.2.0
3: Calendar Bases v0.2.8