Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-10-16 21:54:59 +08:00
parent bebf34db23
commit a161fa5e58
3 changed files with 14 additions and 4 deletions

View File

@@ -295,10 +295,15 @@ class MyApp extends StatelessWidget {
Get.back();
}
return Shortcuts(
shortcuts: {
LogicalKeySet(LogicalKeyboardKey.escape):
VoidCallbackIntent(onBack),
return Focus(
canRequestFocus: false,
onKeyEvent: (_, event) {
if (event.logicalKey == LogicalKeyboardKey.escape &&
event is KeyDownEvent) {
onBack();
return KeyEventResult.handled;
}
return KeyEventResult.ignored;
},
child: MouseBackDetector(
onTapDown: onBack,

View File

@@ -805,6 +805,10 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
),
onTap: () =>
plPlayerController.triggerFullScreen(status: !isFullScreen),
onSecondaryTap: () => plPlayerController.triggerFullScreen(
status: !isFullScreen,
inAppFullScreen: true,
),
),
};

View File

@@ -107,6 +107,7 @@ abstract class Update {
downloadBtn('zip', ext: 'zip'),
downloadBtn('exe', ext: 'exe'),
] else if (Platform.isLinux) ...[
downloadBtn('rpm', ext: 'rpm'),
downloadBtn('deb', ext: 'deb'),
downloadBtn('targz', ext: 'tar.gz'),
] else