custom-electron-titlebar
custom-electron-titlebar copied to clipboard
When I mouse-click the titlebar, the window does not get focus
Problem Description
When I mouse-click the titlebar, the window does not get focus. My electron app is configured with several shortcuts. When the window gets unfocus, the shortcut keys will be disabled
Steps to Reproduce
- launch the electron player.
- drag media into the window(after it, the window get unfocus).
- mouse-click the titlebar and test whether shortcuts are enabled.
- the final result is that the shortcuts are still disabled.
Expected Behavior
When I mouse-click the titlebar, the window could get focus. Or the titlebar could export the clicking callback.
Current Behavior
When I mouse-click the titlebar, the window does not get focus
Desktop
OS: Windows 11 Electron version 25.1.0 Node Version 16.16.0