mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
feat: support more command + x shortcut
This commit is contained in:
parent
f4a31768cb
commit
b9c0c1209a
@ -23,6 +23,18 @@ FlowyKeyEventHandler updateTextStyleByCommandXHandler = (editorState, event) {
|
|||||||
case 'b':
|
case 'b':
|
||||||
formatBold(editorState);
|
formatBold(editorState);
|
||||||
return KeyEventResult.handled;
|
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:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user