mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-07-22 06:08:54 -04:00
add unsent messages, fix hotkeys so they work with chrome
This commit is contained in:
parent
576c8e477a
commit
34f9bea6eb
5 changed files with 149 additions and 138 deletions
|
@ -125,27 +125,32 @@ class KeyboardShortcuts extends StatelessWidget {
|
|||
@override
|
||||
Widget build(BuildContext context) => ThemeSwitcher(
|
||||
builder: (context) => Shortcuts(
|
||||
shortcuts: <LogicalKeySet, Intent>{
|
||||
LogicalKeySet(
|
||||
LogicalKeyboardKey.alt,
|
||||
LogicalKeyboardKey.control,
|
||||
LogicalKeyboardKey.keyR): const ReloadThemeIntent(),
|
||||
LogicalKeySet(
|
||||
LogicalKeyboardKey.alt,
|
||||
LogicalKeyboardKey.control,
|
||||
LogicalKeyboardKey.keyB): const ChangeBrightnessIntent(),
|
||||
LogicalKeySet(
|
||||
LogicalKeyboardKey.alt,
|
||||
LogicalKeyboardKey.control,
|
||||
LogicalKeyboardKey.keyC): const ChangeColorIntent(),
|
||||
LogicalKeySet(
|
||||
LogicalKeyboardKey.alt,
|
||||
LogicalKeyboardKey.control,
|
||||
LogicalKeyboardKey.keyD): const AttachDetachIntent(),
|
||||
LogicalKeySet(
|
||||
LogicalKeyboardKey.alt,
|
||||
LogicalKeyboardKey.control,
|
||||
LogicalKeyboardKey.backquote): const DeveloperPageIntent(),
|
||||
shortcuts: const <ShortcutActivator, Intent>{
|
||||
SingleActivator(
|
||||
LogicalKeyboardKey.keyR,
|
||||
control: true,
|
||||
alt: true,
|
||||
): ReloadThemeIntent(),
|
||||
SingleActivator(
|
||||
LogicalKeyboardKey.keyB,
|
||||
control: true,
|
||||
alt: true,
|
||||
): ChangeBrightnessIntent(),
|
||||
SingleActivator(
|
||||
LogicalKeyboardKey.keyC,
|
||||
control: true,
|
||||
alt: true,
|
||||
): ChangeColorIntent(),
|
||||
SingleActivator(
|
||||
LogicalKeyboardKey.keyA,
|
||||
control: true,
|
||||
alt: true,
|
||||
): AttachDetachIntent(),
|
||||
SingleActivator(
|
||||
LogicalKeyboardKey.keyD,
|
||||
control: true,
|
||||
alt: true,
|
||||
): DeveloperPageIntent(),
|
||||
},
|
||||
child: Actions(actions: <Type, Action<Intent>>{
|
||||
ReloadThemeIntent: CallbackAction<ReloadThemeIntent>(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue