From 4ba3bc03ded2e5d46f04d5e3deba16afba0d03b2 Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Tue, 5 Mar 2024 12:47:40 +0800 Subject: [PATCH] Update shortcut params --- .../web/components/templates/KeyboardShortcutListModal.tsx | 6 +++--- packages/web/pages/[username]/[slug]/index.tsx | 6 ++++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/packages/web/components/templates/KeyboardShortcutListModal.tsx b/packages/web/components/templates/KeyboardShortcutListModal.tsx index b3826ed22..69cc4a2a1 100644 --- a/packages/web/components/templates/KeyboardShortcutListModal.tsx +++ b/packages/web/components/templates/KeyboardShortcutListModal.tsx @@ -42,13 +42,13 @@ const libraryItemCommands = () => { }, { actionDescription: 'Mark item as read', - shortcutKeys: ['m', 'r'], + shortcutKeys: ['-'], shortcutKeyDescription: 'm then r', callback: () => {}, }, { actionDescription: 'Mark item as unread', - shortcutKeys: ['m', 'u'], + shortcutKeys: ['_'], shortcutKeyDescription: 'm then u', callback: () => {}, }, @@ -90,7 +90,7 @@ const readerCommands = () => { }, { actionDescription: 'Mark current item as read', - shortcutKeys: ['m', 'r'], + shortcutKeys: ['-'], shortcutKeyDescription: 'm then r', callback: () => {}, }, diff --git a/packages/web/pages/[username]/[slug]/index.tsx b/packages/web/pages/[username]/[slug]/index.tsx index f5905ab5f..2ba3318d3 100644 --- a/packages/web/pages/[username]/[slug]/index.tsx +++ b/packages/web/pages/[username]/[slug]/index.tsx @@ -345,7 +345,7 @@ export default function Home(): JSX.Element { id: 'mark_read', section: 'Article', name: 'Mark current item as read', - shortcut: ['m', 'r'], + shortcut: ['-'], perform: () => { document.dispatchEvent(new Event('mark-read')) }, @@ -566,7 +566,9 @@ export default function Home(): JSX.Element { highlightOnRelease={ readerSettings.highlightOnRelease ?? undefined } - textDirection={readerSettings.textDirection} + textDirection={ + article.directionality ?? readerSettings.textDirection + } articleMutations={{ createHighlightMutation, deleteHighlightMutation,