mirror of
https://github.com/AppFlowy-IO/AppFlowy
synced 2026-05-23 17:18:31 +00:00
feat: support more command + x shortcut
This commit is contained in:
parent
f4a31768cb
commit
b9c0c1209a
1 changed files with 12 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue