Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto-Type under Windows 11 won’t react if focus is on Desktop or Start Menu bar #11247

Open
gitflo opened this issue Sep 7, 2024 · 1 comment

Comments

@gitflo
Copy link

gitflo commented Sep 7, 2024

Overview

Running on Windows 11, Auto-Type won’t react if the focus is on Desktop or Start Menu bar. On Windows 10 with the same program version, configuration, and database, it works.
A workaround in case of the Start Menu bar is to add “Program Manager” to the Auto-Type window assignments of the desired Keepass entry.

Steps to Reproduce

  1. Click on an empty area on the Windows 11 Desktop, or an empty area on the Windows 11 Start Menu bar
  2. Hit Auto-Type keyboard shortcut

Expected Behavior

Keepass Auto-Type window will show up.

Actual Behavior

Nothing happens.

Context

KeePassXC 2.7.9
Operating System: Windows 11
Tested on:
Windows 11 Enterprise 22H2 Build 22621.4037
Windows 11 Enterprise 23H2 Build 22631.4037

@gitflo gitflo added the bug label Sep 7, 2024
@droidmonkey
Copy link
Member

droidmonkey commented Sep 7, 2024

The reason this doesn't work on the start menu and desktop is because Windows no longer returns these as a foreground window regardless of "focus". This must be new behavior on Windows' side because this used to work fine. This is our code that returns a null string when focused on the desktop:

//
// Get foreground window title
//
QString AutoTypePlatformWin::activeWindowTitle()
{
    return windowTitle(::GetForegroundWindow());
}

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

No branches or pull requests

2 participants