mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-08-07 05:38:27 +02:00
Clear focus on Game Bar after activating it
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { CE, createSvgIcon } from "@utils/html";
|
||||
import { CE, clearFocus, createSvgIcon } from "@utils/html";
|
||||
import { ScreenshotAction } from "./action-screenshot";
|
||||
import { TouchControlAction } from "./action-touch-control";
|
||||
import { BxEvent } from "@utils/bx-event";
|
||||
@@ -133,6 +133,9 @@ export class GameBar {
|
||||
}
|
||||
|
||||
hideBar() {
|
||||
// Stop focusing Game Bar
|
||||
clearFocus();
|
||||
|
||||
if (!this.$container) {
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user