Move the u command to the reader view
This commit is contained in:
@ -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',
|
||||
|
||||
Reference in New Issue
Block a user