Add g+e keyboard shortcut for /explore (trending) (#38014)

This commit is contained in:
Antoine Cellerier authored and GitHub committed 2026-03-02 13:49:28 +00:00
1 parent f953d40289
commit 87004ddb96
5 files changed
+17

No files matched your search

@@ -134,6 +134,10 @@ class KeyboardShortcuts extends ImmutablePureComponent {
<td><kbd>g</kbd>+<kbd>h</kbd></td>
<td><FormattedMessage id='keyboard_shortcuts.home' defaultMessage='to open home timeline' /></td>
</tr>
<tr>
<td><kbd>g</kbd>+<kbd>e</kbd></td>
<td><FormattedMessage id='keyboard_shortcuts.explore' defaultMessage='to open trending timeline' /></td>
</tr>
<tr>
<td><kbd>g</kbd>+<kbd>n</kbd></td>
<td><FormattedMessage id='keyboard_shortcuts.notifications' defaultMessage='to open notifications column' /></td>
@@ -534,6 +534,10 @@ class UI extends PureComponent {
this.props.history.push('/home');
};
handleHotkeyGoToExplore = () => {
this.props.history.push('/explore');
};
handleHotkeyGoToNotifications = () => {
this.props.history.push('/notifications');
};
@@ -595,6 +599,7 @@ class UI extends PureComponent {
moveToTop: this.handleMoveToTop,
back: this.handleHotkeyBack,
goToHome: this.handleHotkeyGoToHome,
goToExplore: this.handleHotkeyGoToExplore,
goToNotifications: this.handleHotkeyGoToNotifications,
goToLocal: this.handleHotkeyGoToLocal,
goToFederated: this.handleHotkeyGoToFederated,