diff --git a/lib/main.dart b/lib/main.dart index c47bea35d..1a8807653 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -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, diff --git a/lib/plugin/pl_player/view.dart b/lib/plugin/pl_player/view.dart index fdb001e19..4733b69c2 100644 --- a/lib/plugin/pl_player/view.dart +++ b/lib/plugin/pl_player/view.dart @@ -805,6 +805,10 @@ class _PLVideoPlayerState extends State ), onTap: () => plPlayerController.triggerFullScreen(status: !isFullScreen), + onSecondaryTap: () => plPlayerController.triggerFullScreen( + status: !isFullScreen, + inAppFullScreen: true, + ), ), }; diff --git a/lib/utils/update.dart b/lib/utils/update.dart index cb35c3bd4..04fe87b6b 100644 --- a/lib/utils/update.dart +++ b/lib/utils/update.dart @@ -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