keyboard-shortcuts: Document browse back and forward in history.

Documents in help center `/keyboard-shortcuts` and in the app `?`
menu the shortcuts used by browsers for navigating back and forward
through the open tab's history, which are made to work in Zulip.

Also, updates `adjust_mac_shortcuts` to update the shortcut keys
for users with Mac user agents.

Fixes #18542.
This commit is contained in:
Lauryn Menard
2022-07-13 12:28:12 +02:00
committed by Tim Abbott
parent 5bcf78e0cb
commit f03eed5231
4 changed files with 15 additions and 0 deletions

View File

@@ -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"]);