global escape

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-10-04 18:19:02 +08:00
parent 2aa9b46433
commit aa356b5376
2 changed files with 37 additions and 41 deletions

View File

@@ -163,18 +163,6 @@ class PlayerFocus extends StatelessWidget {
..controlsLock.value = false;
return true;
case LogicalKeyboardKey.escape:
if (plPlayerController.controlsLock.value) {
plPlayerController.onLockControl(false);
} else if (plPlayerController.isDesktopPip) {
plPlayerController.exitDesktopPip();
} else if (isFullScreen) {
plPlayerController.triggerFullScreen(status: false);
} else {
Get.back();
}
return true;
case LogicalKeyboardKey.keyD:
if (plPlayerController.isLive) {
final newVal = !plPlayerController.enableShowLiveDanmaku.value;