[Hotfix][Peek]Consume shortcut only on Desktop and Shell (#26222)

* [Peek]Consume shortcut only on Desktop and Shell

* Appease spellchecker
This commit is contained in:
Jaime Bernardo
2023-05-25 10:27:21 +01:00
committed by GitHub
parent 6a4a5c59d7
commit 0bf4cfd8b5
3 changed files with 117 additions and 10 deletions

View File

@@ -22,6 +22,8 @@ namespace Peek.UI.Extensions
return activeTab;
}
// Keep logic synced with the similar function in the C++ module interface.
// TODO: Refactor into same C++ class consumed by both.
internal static bool IsDesktopWindow(this HWND windowHandle)
{
StringBuilder strClassName = new StringBuilder(256);