Update shortcut params

This commit is contained in:
Jackson Harper
2024-03-05 12:47:40 +08:00
parent cb6ef5f81c
commit 4ba3bc03de
2 changed files with 7 additions and 5 deletions

View File

@ -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: () => {},
},

View File

@ -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,