Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

feat: support more command + x shortcut

Lucas.Xub9c0c1209ac3
diff --git a/frontend/app_flowy/packages/flowy_editor/lib/service/internal_key_event_handlers/update_text_style_by_command_x_handler.dart b/frontend/app_flowy/packages/flowy_editor/lib/service/internal_key_event_handlers/update_text_style_by_command_x_handler.dart
index 220643cf6f..02073563eb 100644
--- a/frontend/app_flowy/packages/flowy_editor/lib/service/internal_key_event_handlers/update_text_style_by_command_x_handler.dart
+++ b/frontend/app_flowy/packages/flowy_editor/lib/service/internal_key_event_handlers/update_text_style_by_command_x_handler.dart
@@ -23,6 +23,18 @@ FlowyKeyEventHandler updateTextStyleByCommandXHandler = (editorState, event) {
case 'b':
formatBold(editorState);
return KeyEventResult.handled;
+ case 'I':
+ case 'i':
+ formatItalic(editorState);
+ return KeyEventResult.handled;
+ case 'U':
+ case 'u':
+ formatUnderline(editorState);
+ return KeyEventResult.handled;
+ case 'S':
+ case 's':
+ formatStrikethrough(editorState);
+ return KeyEventResult.handled;
default:
break;
}