Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

keyboard_shortcuts: Add hotkeys for recent topics.

Aman Agrawale56910e22d58
diff --git a/templates/zerver/app/keyboard_shortcuts.html b/templates/zerver/app/keyboard_shortcuts.html
index 4c0bc47b08f..e097909db13 100644
--- a/templates/zerver/app/keyboard_shortcuts.html
+++ b/templates/zerver/app/keyboard_shortcuts.html
@@ -232,6 +232,23 @@
</tr>
</table>
</div>
+ <div>
+ <table class="hotkeys_table table table-striped table-bordered table-condensed">
+ <thead>
+ <tr>
+ <th colspan="2">{{ _("Recent topics") }}</th>
+ </tr>
+ </thead>
+ <tr>
+ <td class="definition">{% trans %}View recent topics{% endtrans %}</td>
+ <td><span class="hotkey"><kbd>T</kbd></span></td>
+ </tr>
+ <tr>
+ <td class="definition">{% trans %}Hide recent topics{% endtrans %}</td>
+ <td><span class="hotkey"><kbd>Esc</kbd></span></td>
+ </tr>
+ </table>
+ </div>
<div>
<table class="hotkeys_table table table-striped table-bordered table-condensed">
<thead>
diff --git a/templates/zerver/help/keyboard-shortcuts.md b/templates/zerver/help/keyboard-shortcuts.md
index 70e527b5d7d..e7845ca7fe6 100644
--- a/templates/zerver/help/keyboard-shortcuts.md
+++ b/templates/zerver/help/keyboard-shortcuts.md
@@ -137,6 +137,14 @@ title="thumbs up"/>**: `+`
(including All messages), and don't contribute to unread counts. Read more about
[muting topics](/help/mute-a-topic).
+## Recent Topics
+
+* **View Recent Topics**: `t`
+* **Hide Recent Topics**: `Esc`
+
+Keyboard navigation (e.g. arrow keys) works as expected.
+Use `Enter` to engage with elements.
+
## Drafts
* **Toggle drafts view**: `d`