mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-23 20:12:35 +08:00
global escape
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user