feat: support more command + x shortcut

This commit is contained in:
Lucas.Xu 2022-08-09 11:46:40 +08:00
parent f4a31768cb
commit b9c0c1209a

View File

@ -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;
}