Comment

Comment by ajolly

You want to change the ForegroundLockTimeout registry key or set it via power shell.

by default if you haven't typed anything for a little bit Windows allows an application to steal focus. If you change that value you can prevent windows from ever stealing focus or change how long they have to wait before they're allowed to.

Windows has a ton of little settings you can tweak like this if it's not working quite how you like it.

I personally tweak it the other way to allow a window to pop up and still focus sooner .

If you set up via PowerShell you can do it more dynamically and if you're doing it via the API there's behavior in there too force a lock

parent ajolly 9 months ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton