π The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.
Vue dockergolangkanbanknowledge-baseknowledge-managementmarkdownnote-takingnotesnotes-appnotionnuxtnuxtjsoffline-firstoidcpwaselfhostedssovuevuejswiki
Fix shortcuts
Smaug6739a15d61a702d0
diff --git a/frontend/app/pages/dashboard/docs/[id].vue b/frontend/app/pages/dashboard/docs/[id].vueindex 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 pagesconst handleDocumentKeydown = (e: KeyboardEvent) => {- if (e.key === 'e') {+ if (e.ctrlKey && e.key === 'e') {e.preventDefault();// Go to the edit page of the current documentif (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 pageif (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 pageif (previous.value?.id) {diff --git a/frontend/app/pages/dashboard/settings/_views/shortcuts.vue b/frontend/app/pages/dashboard/settings/_views/shortcuts.vueindex 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>