Electron.GlobalShortcut.Register // Disabled key, in other app #439

Closed
opened 2026-01-29 16:39:41 +00:00 by claunia · 2 comments
Owner

Originally created by @nurbat on GitHub (Dec 19, 2019).

Originally assigned to: @GregorBiswanger on GitHub.

NET.CORE

After the application starts, we go to another program. also we press the button.
Our program reads the key, but the focus in another program no longer sees this letter.. Even if you go to the notebook. The key is not fulfilled.

изображение

Originally created by @nurbat on GitHub (Dec 19, 2019). Originally assigned to: @GregorBiswanger on GitHub. NET.CORE After the application starts, we go to another program. also we press the button. Our program reads the key, but the focus in another program no longer sees this letter.. Even if you go to the notebook. The key is not fulfilled. ![изображение](https://user-images.githubusercontent.com/5789051/71197217-ccd3e180-2299-11ea-8dee-85a7dfac34f4.png)
claunia added the bug label 2026-01-29 16:39:41 +00:00
Author
Owner

@nurbat commented on GitHub (Dec 19, 2019):

It 's not exactly a bug, but even some fiche. It wouldn 't be bad if you could turn off or turn on extra...
Whatever global key is disabled for other programs or not disabled

@nurbat commented on GitHub (Dec 19, 2019): It 's not exactly a bug, but even some fiche. It wouldn 't be bad if you could turn off or turn on extra... Whatever global key is disabled for other programs or not disabled
Author
Owner

@GregorBiswanger commented on GitHub (Apr 21, 2020):

Hi @nurbat, you can easily determine that yourself using program logic.

Subscribe to the App.OnBlur event and deregister the global shortkey with Electron.GlobalShortcut.Unregister.

With the App.OnFocus event you can register your shortcuts again.

@GregorBiswanger commented on GitHub (Apr 21, 2020): Hi @nurbat, you can easily determine that yourself using program logic. Subscribe to the `App.OnBlur` event and deregister the global shortkey with `Electron.GlobalShortcut.Unregister`. With the `App.OnFocus` event you can register your shortcuts again.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#439