Describe the bug
Issue: With Hugo, when the preview is opened, every update reloads the CMS panel and the preview steals the input focus!
To Reproduce
Steps to reproduce the behavior:
Create a site
Open the preview window
Type a sentence of text as new content
Cannot complete the sentence as input key focus is stolen by the preview browser panel
Expected behavior
Being able to input text uninterrupted.
Device:
OS: Win11
Front Matter CMS: eliostruyf.vscode-front-matter-beta Version 10.8.13176977
Browser: None (Preview panel in VS Code)
**Describe the bug**
Issue: With Hugo, when the preview is opened, every update reloads the CMS panel and the preview steals the input focus!
**To Reproduce**
Steps to reproduce the behavior:
1. Create a site
2. Open the preview window
3. Type a sentence of text as new content
4. Cannot complete the sentence as input key focus is stolen by the preview browser panel
**Expected behavior**
Being able to input text uninterrupted.
**Device:**
- OS: Win11
- Front Matter CMS: eliostruyf.vscode-front-matter-beta Version 10.8.13176977
- Browser: None (Preview panel in VS Code)
<!-- github-sync-id:2840289009 -->
This was tested on macOS, will now do the same for Windows.
@bernhardkaindl, that is odd behavior, as I don't see this happening. I've also been using Hugo for a long time and never stumbled upon this issue.
I created a new site via the getting started guide from Hugo, and made a first post on which I tried to lose the focus.
https://github.com/user-attachments/assets/4b13df50-be11-448c-aee2-ec05a0b2e6fd
> This was tested on macOS, will now do the same for Windows.
<!-- github-comment-id:2653333208 -->
I just tested on Windows, and I had a similar experience as above. Can it be another extension that is causing this?
I just tested on Windows, and I had a similar experience as above. Can it be another extension that is causing this?
<!-- github-comment-id:2653473713 -->
The same thing happens to me in Windows 11.
When I press Ctrl+S to save, the panel reloads and the focus disappears from the text editor.
But only when the preview window is open.
There is no other extensions enabled in the workspace.
**Extension version:**
10.9.0
**VS Code:**
Version: 1.105.1 (user setup)
Commit: 7d842fb85a0275a4a8e4d7e040d2625abbf7f084
Date: 2025-10-14T22:33:36.618Z
Electron: 37.6.0
ElectronBuildId: 12502201
Chromium: 138.0.7204.251
Node.js: 22.19.0
V8: 13.8.258.32-electron.0
OS: Windows_NT x64 10.0.26200
<!-- github-comment-id:3409347265 -->
That's Hugo, not any extension. It makes the dev server unusable every now and then because it steals focus from wherever you are (for instance the Front Matter Dashboard) to focus the browser into the front. The only way is to move to a hugo version that is NOT breaking. v0.147.0 did it; newer versions might be fixed again or disable live-reload in your Hugo site.
That's Hugo, not any extension. It makes the dev server unusable every now and then because it steals focus from wherever you are (for instance the Front Matter Dashboard) to focus the browser into the front. The only way is to move to a hugo version that is NOT breaking. v0.147.0 did it; newer versions might be fixed again or disable live-reload in your Hugo site.
<!-- github-comment-id:3413553248 -->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Describe the bug
Issue: With Hugo, when the preview is opened, every update reloads the CMS panel and the preview steals the input focus!
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Being able to input text uninterrupted.
Device:
@bernhardkaindl, that is odd behavior, as I don't see this happening. I've also been using Hugo for a long time and never stumbled upon this issue.
I created a new site via the getting started guide from Hugo, and made a first post on which I tried to lose the focus.
https://github.com/user-attachments/assets/4b13df50-be11-448c-aee2-ec05a0b2e6fd
I just tested on Windows, and I had a similar experience as above. Can it be another extension that is causing this?
The same thing happens to me in Windows 11.
When I press Ctrl+S to save, the panel reloads and the focus disappears from the text editor.
But only when the preview window is open.
There is no other extensions enabled in the workspace.
Extension version:
10.9.0
VS Code:
Version: 1.105.1 (user setup)
Commit: 7d842fb85a0275a4a8e4d7e040d2625abbf7f084
Date: 2025-10-14T22:33:36.618Z
Electron: 37.6.0
ElectronBuildId: 12502201
Chromium: 138.0.7204.251
Node.js: 22.19.0
V8: 13.8.258.32-electron.0
OS: Windows_NT x64 10.0.26200
That's Hugo, not any extension. It makes the dev server unusable every now and then because it steals focus from wherever you are (for instance the Front Matter Dashboard) to focus the browser into the front. The only way is to move to a hugo version that is NOT breaking. v0.147.0 did it; newer versions might be fixed again or disable live-reload in your Hugo site.