Move the u command to the reader view

This commit is contained in:
Jackson Harper
2022-03-08 13:02:38 -08:00
parent 8109dd3a85
commit dad777ce6d

View File

@ -11,14 +11,10 @@ export function navigationCommands(
shortcutKeyDescription: 'g then h',
callback: () => router?.push('/home'),
},
// {
// shortcutKeys: ['g', 'd'],
// callback: () => router.push('/discover'),
// },
{
shortcutKeys: ['b|u'],
shortcutKeys: ['b'],
actionDescription: 'Go back',
shortcutKeyDescription: 'b or u',
shortcutKeyDescription: 'b',
callback: () => router?.back(),
},
]
@ -213,6 +209,7 @@ type ArticleKeyboardAction =
| 'editLabels'
export function articleKeyboardCommands(
router: NextRouter,
actionHandler: (action: ArticleKeyboardAction) => void
): KeyboardCommand[] {
return [
@ -222,6 +219,12 @@ export function articleKeyboardCommands(
shortcutKeyDescription: 'o',
callback: () => actionHandler('openOriginalArticle'),
},
{
shortcutKeys: ['u'],
actionDescription: 'Back to library',
shortcutKeyDescription: 'u',
callback: () => router?.push('/home'),
},
{
shortcutKeys: ['+'],
actionDescription: 'Increase font size',