about summary refs log tree commit diff
path: root/app/javascript/mastodon/features/ui/util/async-components.js
diff options
context:
space:
mode:
authorJoshua Wood <josh@joshuawood.net>2017-11-27 12:31:58 -0800
committerEugen Rochko <eugen@zeonfederated.com>2017-11-27 21:31:58 +0100
commitff78c1177a180f1b9aec8464734ac3aa1c888874 (patch)
treeeea2c9a01c4f1735bd486355c67749891498b8f8 /app/javascript/mastodon/features/ui/util/async-components.js
parentc6b7c772293ed1319dc57741487ce5bc774558a9 (diff)
Add Keyboard Shortcuts Legend (#5823)
* Add Keyboard Shortcuts Legend

Adds a "Keyboard Shortcuts" legend (displayed in the rightmost column)
which is toggled via a new "?" hotkey. When subsequently pressed from
the Keyboard Shortcuts legend, "?" will navigate back to the previous
location.

* Add hidden table headings.

Makes the headings available for accessibility but hides them visually.
Diffstat (limited to 'app/javascript/mastodon/features/ui/util/async-components.js')
-rw-r--r--app/javascript/mastodon/features/ui/util/async-components.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/javascript/mastodon/features/ui/util/async-components.js b/app/javascript/mastodon/features/ui/util/async-components.js
index ec1630ed6..b741f668e 100644
--- a/app/javascript/mastodon/features/ui/util/async-components.js
+++ b/app/javascript/mastodon/features/ui/util/async-components.js
@@ -38,6 +38,10 @@ export function GettingStarted () {
   return import(/* webpackChunkName: "features/getting_started" */'../../getting_started');
 }
 
+export function KeyboardShortcuts () {
+  return import(/* webpackChunkName: "features/keyboard_shortcuts" */'../../keyboard_shortcuts');
+}
+
 export function PinnedStatuses () {
   return import(/* webpackChunkName: "features/pinned_statuses" */'../../pinned_statuses');
 }