This commit is contained in:
Rupamthxt
2024-11-12 23:03:29 +05:30
committed by Ankit Mahato
parent 211c7dfd03
commit de7ba8870c

View File

@@ -19,11 +19,11 @@ class Dashboard extends ConsumerWidget {
final railIdx = ref.watch(navRailIndexStateProvider); final railIdx = ref.watch(navRailIndexStateProvider);
return Shortcuts( return Shortcuts(
shortcuts: { shortcuts: {
LogicalKeySet(LogicalKeyboardKey.controlLeft, LogicalKeyboardKey.keyS): const SaveIntent(), LogicalKeySet(LogicalKeyboardKey.control, LogicalKeyboardKey.keyS): const SaveIntent(),
}, },
child: Actions( child: Actions(
actions: { actions: {
SaveIntent: CallbackAction(onInvoke: (intent) => saveData(context, ref)) SaveIntent : CallbackAction(onInvoke: (intent) => saveData(context, ref))
}, },
child: FocusScope( child: FocusScope(
autofocus: true, autofocus: true,