Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions frontend/appflowy_flutter/assets/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
},
"dialogCreatePageNameHint": "Page name",
"questionBubble": {
"shortcuts": "Shortcuts",
"whatsNew": "What's new?",
"help": "Help & Support",
"debug": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ class BubbleActionList extends StatelessWidget {
case BubbleAction.debug:
_DebugToast().show();
break;
case BubbleAction.shortcuts:
_launchURL(
"https://github.com/AppFlowy-IO/AppFlowy-Docs/blob/main/essential-documentation/shortcuts.md");
break;
}
}

Expand Down Expand Up @@ -160,7 +164,7 @@ class FlowyVersionDescription extends CustomActionCell {
}
}

enum BubbleAction { whatsNews, help, debug }
enum BubbleAction { whatsNews, help, debug, shortcuts }

class BubbleActionWrapper extends ActionCell {
final BubbleAction inner;
Expand All @@ -182,6 +186,8 @@ extension QuestionBubbleExtension on BubbleAction {
return LocaleKeys.questionBubble_help.tr();
case BubbleAction.debug:
return LocaleKeys.questionBubble_debug_name.tr();
case BubbleAction.shortcuts:
return LocaleKeys.questionBubble_shortcuts.tr();
}
}

Expand All @@ -193,6 +199,8 @@ extension QuestionBubbleExtension on BubbleAction {
return '👥';
case BubbleAction.debug:
return '🐛';
case BubbleAction.shortcuts:
return '⌨️';
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@ List<ShortcutEvent> builtInShortcutEvents = [
handler: cursorDownSelect,
),
ShortcutEvent(
key: 'Cursor down select',
key: 'Cursor left word select',
command: 'shift+alt+arrow left',
windowsCommand: 'shift+alt+arrow left',
linuxCommand: 'shift+alt+arrow left',
handler: cursorLeftWordSelect,
),
ShortcutEvent(
key: 'Cursor down select',
key: 'Cursor right word select',
command: 'shift+alt+arrow right',
windowsCommand: 'shift+alt+arrow right',
linuxCommand: 'shift+alt+arrow right',
Expand Down