Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
keyboard-shortcuts: Document browse back and forward in history.
Lauryn Menardf03eed523130
diff --git a/frontend_tests/node_tests/common.js b/frontend_tests/node_tests/common.jsindex 02ba05a7f7c..ab992e5d58e 100644--- a/frontend_tests/node_tests/common.js+++ b/frontend_tests/node_tests/common.js@@ -100,6 +100,7 @@ run_test("adjust_mac_shortcuts mac non-defaults", ({override}) => {["PgUp", "↑"],["PgDn", "↓"],["Ctrl", "⌘"],+ ["Alt", "⌘"],["X + Shift", "X + Shift"],["⌘ + Return", "⌘ + Return"],["Enter or Backspace", "Enter or Backspace"],@@ -157,6 +158,7 @@ run_test("adjust_mac_shortcuts mac defaults", ({override}) => {["PgUp", "↑"],["PgDn", "↓"],["Ctrl", "⌘"],+ ["Alt", "⌘"],["[", "["],["X", "X"],]);diff --git a/static/js/common.ts b/static/js/common.tsindex 8ba64886b08..a3b4b34db81 100644--- a/static/js/common.ts+++ b/static/js/common.ts@@ -61,6 +61,7 @@ export function adjust_mac_shortcuts(key_elem_class: string, kbd_elem = true): v["PgUp", "↑"],["PgDn", "↓"],["Ctrl", "⌘"],+ ["Alt", "⌘"],]);const fn_shortcuts = new Set(["Home", "End", "PgUp", "PgDn"]);diff --git a/static/templates/keyboard_shortcuts.hbs b/static/templates/keyboard_shortcuts.hbsindex 1c12822e75b..619d979e0ef 100644--- a/static/templates/keyboard_shortcuts.hbs+++ b/static/templates/keyboard_shortcuts.hbs@@ -101,6 +101,14 @@<td class="definition">{{t 'First message' }}</td><td><span class="hotkey"><kbd>Home</kbd></span></td></tr>+ <tr>+ <td class="definition">{{t 'Go back through viewing history' }}</td>+ <td><span class="hotkey"><kbd>Alt</kbd> + <kbd class="arrow-key">←</kbd></span></td>+ </tr>+ <tr>+ <td class="definition">{{t 'Go forward through viewing history' }}</td>+ <td><span class="hotkey"><kbd>Alt</kbd> + <kbd class="arrow-key">→</kbd></span></td>+ </tr></table></div><div>diff --git a/templates/zerver/help/keyboard-shortcuts.md b/templates/zerver/help/keyboard-shortcuts.mdindex 53d343247a2..ed29eb54a77 100644--- a/templates/zerver/help/keyboard-shortcuts.md+++ b/templates/zerver/help/keyboard-shortcuts.md@@ -67,6 +67,10 @@ below, and add more to your repertoire as needed.* **Scroll down**: `PgDn`, `J`, or `Spacebar`+* **Go back through viewing history**: `Alt` + `←`++* **Go forward through viewing history**: `Alt` + `→`+## Narrowing* **Narrow to next unread topic**: `n`