|
|
@ -67,6 +67,7 @@ const keyMap = { |
|
|
|
goToNotifications: 'g n', |
|
|
|
goToNotifications: 'g n', |
|
|
|
goToLocal: 'g l', |
|
|
|
goToLocal: 'g l', |
|
|
|
goToFederated: 'g t', |
|
|
|
goToFederated: 'g t', |
|
|
|
|
|
|
|
goToDirect: 'g d', |
|
|
|
goToStart: 'g s', |
|
|
|
goToStart: 'g s', |
|
|
|
goToFavourites: 'g f', |
|
|
|
goToFavourites: 'g f', |
|
|
|
goToPinned: 'g p', |
|
|
|
goToPinned: 'g p', |
|
|
@ -293,6 +294,10 @@ export default class UI extends React.Component { |
|
|
|
this.context.router.history.push('/timelines/public'); |
|
|
|
this.context.router.history.push('/timelines/public'); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
handleHotkeyGoToDirect = () => { |
|
|
|
|
|
|
|
this.context.router.history.push('/timelines/direct'); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
handleHotkeyGoToStart = () => { |
|
|
|
handleHotkeyGoToStart = () => { |
|
|
|
this.context.router.history.push('/getting-started'); |
|
|
|
this.context.router.history.push('/getting-started'); |
|
|
|
} |
|
|
|
} |
|
|
@ -331,6 +336,7 @@ export default class UI extends React.Component { |
|
|
|
goToNotifications: this.handleHotkeyGoToNotifications, |
|
|
|
goToNotifications: this.handleHotkeyGoToNotifications, |
|
|
|
goToLocal: this.handleHotkeyGoToLocal, |
|
|
|
goToLocal: this.handleHotkeyGoToLocal, |
|
|
|
goToFederated: this.handleHotkeyGoToFederated, |
|
|
|
goToFederated: this.handleHotkeyGoToFederated, |
|
|
|
|
|
|
|
goToDirect: this.handleHotkeyGoToDirect, |
|
|
|
goToStart: this.handleHotkeyGoToStart, |
|
|
|
goToStart: this.handleHotkeyGoToStart, |
|
|
|
goToFavourites: this.handleHotkeyGoToFavourites, |
|
|
|
goToFavourites: this.handleHotkeyGoToFavourites, |
|
|
|
goToPinned: this.handleHotkeyGoToPinned, |
|
|
|
goToPinned: this.handleHotkeyGoToPinned, |
|
|
|