about summary refs log tree commit diff
path: root/app/javascript/mastodon/features/keyboard_shortcuts/index.js
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2019-05-25 23:20:51 +0200
committerEugen Rochko <eugen@zeonfederated.com>2019-05-25 23:20:51 +0200
commita472190729782f31731674c626c07af483fe9c7f (patch)
tree68ba41d0095baea25eab7084cace8a9867c74877 /app/javascript/mastodon/features/keyboard_shortcuts/index.js
parentc90f3b9865cec8386b3258169c38dbc6128a696e (diff)
Add a keyboard shortcut to hide/show media (#10647)
* Move control of media visibility to parent component

* Add keyboard shortcut to toggle media visibility
Diffstat (limited to 'app/javascript/mastodon/features/keyboard_shortcuts/index.js')
-rw-r--r--app/javascript/mastodon/features/keyboard_shortcuts/index.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/javascript/mastodon/features/keyboard_shortcuts/index.js b/app/javascript/mastodon/features/keyboard_shortcuts/index.js
index ab1ac511e..01b45652c 100644
--- a/app/javascript/mastodon/features/keyboard_shortcuts/index.js
+++ b/app/javascript/mastodon/features/keyboard_shortcuts/index.js
@@ -61,6 +61,10 @@ class KeyboardShortcuts extends ImmutablePureComponent {
                 <td><FormattedMessage id='keyboard_shortcuts.toggle_hidden' defaultMessage='to show/hide text behind CW' /></td>
               </tr>
               <tr>
+                <td><kbd>h</kbd></td>
+                <td><FormattedMessage id='keyboard_shortcuts.toggle_sensitivity' defaultMessage='to show/hide media' /></td>
+              </tr>
+              <tr>
                 <td><kbd>up</kbd>, <kbd>k</kbd></td>
                 <td><FormattedMessage id='keyboard_shortcuts.up' defaultMessage='to move up in the list' /></td>
               </tr>