Skip to content

Bug: Global hotkey is completely blocked while Task Manager has focus #6

@Arezhik

Description

@Arezhik

Summary

The activation/deactivation hotkey does nothing when Task Manager (taskmgr.exe) is the foreground/focused window. The hotkey only starts working again after the user clicks anywhere else (desktop, another app, etc.) to take focus away from Task Manager.

Once focus is removed, the overlay activates normally and drawing works correctly even over the still-open Task Manager window.

Expected Behavior

The global hotkey should work regardless of which window currently has focus, including system/high-integrity processes like Task Manager.

Actual Behavior

While the task manager window is open and in focus, the user cannot use the global hotkey for the overlay app and activate it. Only when a user clicks a different app, or clicks on the desktop causing the task manager window to lose focus can the app recognize the global hotkey for the overlay activation.

Steps to Reproduce

  1. Launch Task Manager
  2. Ensure it has keyboard focus
  3. Try to toggle the overlay with the hotkey → fails
  4. Alt+Tab or click elsewhere → hotkey now works

Environment

  • Windows 10

Likely Root Cause

The app is using RegisterHotKey() instead of a low-level keyboard hook (LLKBDHOOK / WH_KEYBOARD_LL).
RegisterHotKey() is deliberately blocked by Windows when a higher- or equal-integrity process (like Task Manager, UAC prompts, etc.) has focus – this is a documented security limitation.

Impact

High – users frequently open Task Manager while the app is running and then think the overlay is completely broken until they randomly click elsewhere.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions