parent
52fe8ee95d
commit
0e9a426d5a
1 changed files with 6 additions and 0 deletions
|
@ -92,6 +92,7 @@ const keyMap = {
|
||||||
goToProfile: 'g u',
|
goToProfile: 'g u',
|
||||||
goToBlocked: 'g b',
|
goToBlocked: 'g b',
|
||||||
goToMuted: 'g m',
|
goToMuted: 'g m',
|
||||||
|
goToRequests: 'g r',
|
||||||
toggleSpoiler: 'x',
|
toggleSpoiler: 'x',
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -369,6 +370,10 @@ export default class UI extends React.Component {
|
||||||
this.props.history.push('/mutes');
|
this.props.history.push('/mutes');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
handleHotkeyGoToRequests = () => {
|
||||||
|
this.props.history.push('/follow_requests');
|
||||||
|
}
|
||||||
|
|
||||||
render () {
|
render () {
|
||||||
const { width, draggingOver } = this.state;
|
const { width, draggingOver } = this.state;
|
||||||
const { children, layout, isWide, navbarUnder, dropdownMenuIsOpen } = this.props;
|
const { children, layout, isWide, navbarUnder, dropdownMenuIsOpen } = this.props;
|
||||||
|
@ -408,6 +413,7 @@ export default class UI extends React.Component {
|
||||||
goToProfile: this.handleHotkeyGoToProfile,
|
goToProfile: this.handleHotkeyGoToProfile,
|
||||||
goToBlocked: this.handleHotkeyGoToBlocked,
|
goToBlocked: this.handleHotkeyGoToBlocked,
|
||||||
goToMuted: this.handleHotkeyGoToMuted,
|
goToMuted: this.handleHotkeyGoToMuted,
|
||||||
|
goToRequests: this.handleHotkeyGoToRequests,
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Reference in a new issue