Browse Source

[Glitch] Add hotkey for follow requests

Port 25f6f41052 to glitch-soc
closed-social-glitch-2
Thibaut Girka 5 years ago
committed by ThibG
parent
commit
c789181626
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      app/javascript/flavours/glitch/features/ui/index.js

+ 6
- 0
app/javascript/flavours/glitch/features/ui/index.js View File

@ -92,6 +92,7 @@ const keyMap = {
goToProfile: 'g u',
goToBlocked: 'g b',
goToMuted: 'g m',
goToRequests: 'g r',
toggleSpoiler: 'x',
};
@ -369,6 +370,10 @@ export default class UI extends React.Component {
this.props.history.push('/mutes');
}
handleHotkeyGoToRequests = () => {
this.props.history.push('/follow_requests');
}
render () {
const { width, draggingOver } = this.state;
const { children, layout, isWide, navbarUnder, dropdownMenuIsOpen } = this.props;
@ -408,6 +413,7 @@ export default class UI extends React.Component {
goToProfile: this.handleHotkeyGoToProfile,
goToBlocked: this.handleHotkeyGoToBlocked,
goToMuted: this.handleHotkeyGoToMuted,
goToRequests: this.handleHotkeyGoToRequests,
};
return (

Loading…
Cancel
Save