Skip to content

πŸ“š The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.

Fix shortcuts

Smaug6739a15d61a702d0
diff --git a/frontend/app/pages/dashboard/docs/[id].vue b/frontend/app/pages/dashboard/docs/[id].vue
index 73cad5af..df5b3e72 100644
--- a/frontend/app/pages/dashboard/docs/[id].vue
+++ b/frontend/app/pages/dashboard/docs/[id].vue
@@ -84,19 +84,19 @@ const width = computed(() => {
onMounted(() => {
// Keyboard shortcuts management for navigating between corresponding pages
const handleDocumentKeydown = (e: KeyboardEvent) => {
- if (e.key === 'e') {
+ if (e.ctrlKey && e.key === 'e') {
e.preventDefault();
// Go to the edit page of the current document
if (article.value?.id) {
useRouter().push(`/dashboard/docs/edit/${article.value.id}`);
}
- } else if (e.key === 'n') {
+ } else if (e.ctrlKey && e.key === 'ArrowRight') {
e.preventDefault();
// Go to the next document page
if (next.value?.id) {
useRouter().push(`/dashboard/docs/${next.value.id}`);
}
- } else if (e.key === 'p') {
+ } else if (e.ctrlKey && e.key === 'ArrowLeft') {
e.preventDefault();
// Go to the previous document page
if (previous.value?.id) {
diff --git a/frontend/app/pages/dashboard/settings/_views/shortcuts.vue b/frontend/app/pages/dashboard/settings/_views/shortcuts.vue
index 0d24ac9f..862bbadd 100644
--- a/frontend/app/pages/dashboard/settings/_views/shortcuts.vue
+++ b/frontend/app/pages/dashboard/settings/_views/shortcuts.vue
@@ -37,7 +37,7 @@
<div class="shortcuts">
<div class="shortcut">
<span>Edit the document</span>
- <span><kbd>E</kbd></span>
+ <span><kbd>Ctrl</kbd> <kbd>E</kbd></span>
</div>
<div class="shortcut">
<span>Go to next document</span>