Skip to content

Commit

Permalink
feat(HelpModal): Add missing syntaxes and keyboard shortcuts
Browse files Browse the repository at this point in the history
Signed-off-by: Jonas <jonas@freesources.org>
  • Loading branch information
mejo- committed May 15, 2024
1 parent 810a35c commit 711f093
Showing 1 changed file with 60 additions and 2 deletions.
62 changes: 60 additions & 2 deletions src/components/HelpModal.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<template>
<NcDialog size="normal"
data-text-el="formatting-help"
:name="t('text', 'Formatting help')"
:name="t('text', 'Formatting and shortcuts')"
:close-on-click-outside="true"
@closing="$emit('close')">
<h2>{{ t('text', 'Formatting help') }}</h2>
<h2>{{ t('text', 'Formatting and shortcuts') }}</h2>
<p>{{ t('text', 'Speed up your writing with simple shortcuts.') }}</p>
<p v-if="!isMobileCached">
{{ t('text', 'Just type the Markdown syntax or use keyboard shortcuts from below.') }}
Expand Down Expand Up @@ -174,6 +174,64 @@
</td>
<td v-if="!isMobileCached" />
</tr>
<tr>
<td>{{ t('text', 'Insert emoji') }}</td>
<td>
<code>:{{ t('text', 'emoji') }}</code>
</td>
<td v-if="!isMobileCached" />
</tr>
<tr>
<td>{{ t('text', 'Mention someone') }}</td>
<td>
<code>@{{ t('text', 'name') }}</code>
</td>
<td v-if="!isMobileCached" />
</tr>
<tr>
<td>{{ t('text', 'Smart picker') }}</td>
<td>
<code>/{{ t('text', 'something') }}</code>
</td>
<td v-if="!isMobileCached" />
</tr>
</tbody>
</table>

<table vif="!isMobileCached">
<thead>
<tr>
<th>{{ t('text', 'Action') }}</th>
<th>{{ t('text', 'Keyboard shortcuts') }}</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{ t('text', 'Undo') }}</td>
<td>
<kbd>{{ t('text', 'Ctrl') }}</kbd>
+
<kbd>Z</kbd>
</td>
</tr>
<tr>
<td>{{ t('text', 'Redo') }}</td>
<td>
<kbd>{{ t('text', 'Ctrl') }}</kbd>
+
<kbd>Y</kbd>
</td>
</tr>
<tr>
<td>{{ t('text', 'Toggle outline') }}</td>
<td>
<kbd>{{ t('text', 'Ctrl') }}</kbd>
+
<kbd>{{ t('text', 'Alt') }}</kbd>
+
<kbd>O</kbd>
</td>
</tr>
</tbody>
</table>
</NcDialog>
Expand Down

0 comments on commit 711f093

Please sign in to comment.