diff options
author | Annika Backstrom <annika@sixohthree.com> | 2018-08-19 21:44:16 -0400 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2018-08-20 03:44:16 +0200 |
commit | 25f6f41052b52a765a74e9e16d7411750ae46221 (patch) | |
tree | a3d122cf7ad2fc03fceb7d62fe7da864eabbcc53 /app/javascript | |
parent | 1d1e0171ec52806ff42e2cafa67b1c68afe1f7bb (diff) |
Add hotkey for follow requests (#8307)
Diffstat (limited to 'app/javascript')
-rw-r--r-- | app/javascript/mastodon/features/ui/index.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/javascript/mastodon/features/ui/index.js b/app/javascript/mastodon/features/ui/index.js index 67484fc63..34d52a7d2 100644 --- a/app/javascript/mastodon/features/ui/index.js +++ b/app/javascript/mastodon/features/ui/index.js @@ -89,6 +89,7 @@ const keyMap = { goToProfile: 'g u', goToBlocked: 'g b', goToMuted: 'g m', + goToRequests: 'g r', toggleHidden: 'x', }; @@ -427,6 +428,10 @@ export default class UI extends React.PureComponent { this.context.router.history.push('/mutes'); } + handleHotkeyGoToRequests = () => { + this.context.router.history.push('/follow_requests'); + } + render () { const { draggingOver } = this.state; const { children, isComposing, location, dropdownMenuIsOpen } = this.props; @@ -449,6 +454,7 @@ export default class UI extends React.PureComponent { goToProfile: this.handleHotkeyGoToProfile, goToBlocked: this.handleHotkeyGoToBlocked, goToMuted: this.handleHotkeyGoToMuted, + goToRequests: this.handleHotkeyGoToRequests, }; return ( |