diff options
author | Thibaut Girka <thib@sitedethib.com> | 2018-08-20 11:12:19 +0200 |
---|---|---|
committer | ThibG <thib@sitedethib.com> | 2018-08-20 21:25:02 +0200 |
commit | c78918162642649ce294d89effbf2e815c2aa327 (patch) | |
tree | 8e1992ca6fc79e9506a90d7a54f41fa0ae59faa2 /app/javascript/flavours | |
parent | b230c04e005d41df056c875be1db70b0762621b0 (diff) |
[Glitch] Add hotkey for follow requests
Port 25f6f41052b52a765a74e9e16d7411750ae46221 to glitch-soc
Diffstat (limited to 'app/javascript/flavours')
-rw-r--r-- | app/javascript/flavours/glitch/features/ui/index.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/javascript/flavours/glitch/features/ui/index.js b/app/javascript/flavours/glitch/features/ui/index.js index 7024e60da..d58e11b55 100644 --- a/app/javascript/flavours/glitch/features/ui/index.js +++ b/app/javascript/flavours/glitch/features/ui/index.js @@ -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 ( |