mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-08-02 03:16:42 +02:00
Clear focus on Game Bar after activating it
This commit is contained in:
@@ -174,3 +174,9 @@ export function removeChildElements($parent: HTMLElement) {
|
||||
$parent.firstElementChild.remove();
|
||||
}
|
||||
}
|
||||
|
||||
export function clearFocus() {
|
||||
if (document.activeElement instanceof HTMLElement) {
|
||||
document.activeElement.blur();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user