mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-22 19:53:48 +08:00
chore: add shortcut of code block
This commit is contained in:
@@ -6,6 +6,7 @@ export const macKeyboardShortcuts = {
|
|||||||
Underline: '⌘+U',
|
Underline: '⌘+U',
|
||||||
Strikethrough: '⌘+⇧+S',
|
Strikethrough: '⌘+⇧+S',
|
||||||
'Inline code': ' ⌘+E',
|
'Inline code': ' ⌘+E',
|
||||||
|
'Code block': '⌘+⌥+C',
|
||||||
Link: '⌘+K',
|
Link: '⌘+K',
|
||||||
'Body text': '⌘+⌥+0',
|
'Body text': '⌘+⌥+0',
|
||||||
'Heading 1': '⌘+⌥+1',
|
'Heading 1': '⌘+⌥+1',
|
||||||
@@ -24,6 +25,7 @@ export const macMarkdownShortcuts = {
|
|||||||
Underline: '~Text~ ',
|
Underline: '~Text~ ',
|
||||||
Strikethrough: '~~Text~~ ',
|
Strikethrough: '~~Text~~ ',
|
||||||
'Inline code': '`Text` ',
|
'Inline code': '`Text` ',
|
||||||
|
'Code block': '``` Text',
|
||||||
'Heading 1': '# Text',
|
'Heading 1': '# Text',
|
||||||
'Heading 2': '## Text',
|
'Heading 2': '## Text',
|
||||||
'Heading 3': '### Text',
|
'Heading 3': '### Text',
|
||||||
@@ -40,6 +42,7 @@ export const windowsKeyboardShortcuts = {
|
|||||||
Underline: 'Ctrl+U',
|
Underline: 'Ctrl+U',
|
||||||
Strikethrough: 'Ctrl+Shift+S',
|
Strikethrough: 'Ctrl+Shift+S',
|
||||||
'Inline code': ' Ctrl+E',
|
'Inline code': ' Ctrl+E',
|
||||||
|
'Code block': 'Ctrl+Alt+C',
|
||||||
Link: 'Ctrl+K',
|
Link: 'Ctrl+K',
|
||||||
'Body text': 'Ctrl+Shift+0',
|
'Body text': 'Ctrl+Shift+0',
|
||||||
'Heading 1': 'Ctrl+Shift+1',
|
'Heading 1': 'Ctrl+Shift+1',
|
||||||
@@ -57,6 +60,7 @@ export const winMarkdownShortcuts = {
|
|||||||
Underline: '~Text~ ',
|
Underline: '~Text~ ',
|
||||||
Strikethrough: '~~Text~~ ',
|
Strikethrough: '~~Text~~ ',
|
||||||
'Inline code': '`Text` ',
|
'Inline code': '`Text` ',
|
||||||
|
'Code block': '``` Text',
|
||||||
'Heading 1': '# Text',
|
'Heading 1': '# Text',
|
||||||
'Heading 2': '## Text',
|
'Heading 2': '## Text',
|
||||||
'Heading 3': '### Text',
|
'Heading 3': '### Text',
|
||||||
|
|||||||
Reference in New Issue
Block a user