An open-source cross-platform alternative to AirDrop
feat: switch to "Send" tab when pasting via keyboard shortcut
Tien Do Nam33f3ed905bd6
diff --git a/app/assets/CHANGELOG.md b/app/assets/CHANGELOG.mdindex 874a4ee9..2a824dbb 100644--- a/app/assets/CHANGELOG.md+++ b/app/assets/CHANGELOG.md@@ -2,10 +2,11 @@- feat: support Internet Explorer 8 (IE8) in web share (@Tienisto)- feat: save auto accept state when switching encryption mode in web share (@Tienisto)+- feat: switch to "Send" tab when pasting via keyboard shortcut (@Tienisto)- fix: count PIN tries correctly in web share (@Tienisto)- fix(android): crash when picking files or folders on Android TV (@Tienisto)- fix(windows): crash when sum of file sizes is greater than 2 GB (@Tienisto)-- fix(windows): bundle required DLLs files to avoid crash on app start (@Tienisto)+- fix(windows): bundle required DLL files to avoid crash on app start (@Tienisto)## 1.15.0 (2024-07-15)diff --git a/app/lib/widget/watcher/shortcut_watcher.dart b/app/lib/widget/watcher/shortcut_watcher.dartindex 3707b3da..2c5da547 100644--- a/app/lib/widget/watcher/shortcut_watcher.dart+++ b/app/lib/widget/watcher/shortcut_watcher.dart@@ -2,6 +2,8 @@ import 'dart:io';import 'package:flutter/material.dart';import 'package:flutter/services.dart';+import 'package:localsend_app/pages/home_page.dart';+import 'package:localsend_app/pages/home_page_controller.dart';import 'package:localsend_app/util/native/file_picker.dart';import 'package:localsend_app/util/native/platform_check.dart';import 'package:localsend_app/widget/watcher/window_watcher.dart';@@ -38,6 +40,9 @@ class ShortcutWatcher extends StatelessWidget {_PopPageIntent: CallbackAction(onInvoke: (_) async => Navigator.of(Routerino.context).maybePop()),_PasteIntent: CallbackAction(onInvoke: (_) async {await context.global.dispatchAsync(PickFileAction(option: FilePickerOption.clipboard, context: context));+ if (context.mounted) {+ context.redux(homePageControllerProvider).dispatch(ChangeTabAction(HomeTab.send));+ }return null;}),_CloseWindowIntent: CallbackAction<_CloseWindowIntent>(