about summary refs log tree commit diff
path: root/app/javascript/mastodon/features/keyboard_shortcuts
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2020-06-09 10:32:32 +0200
committerGitHub <noreply@github.com>2020-06-09 10:32:32 +0200
commit6b6a9d0ea362f4e301b56ae817f6c5d1761234b6 (patch)
tree4581dee1bbd47e11fcc01a6f3d8611b22ccc7667 /app/javascript/mastodon/features/keyboard_shortcuts
parent89f40b6c3ec525b09d02f21e9b45276084167d8d (diff)
Add hotkey for toggling content warning composer field (#13987)
Diffstat (limited to 'app/javascript/mastodon/features/keyboard_shortcuts')
-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 666baf621..d278d2b26 100644
--- a/app/javascript/mastodon/features/keyboard_shortcuts/index.js
+++ b/app/javascript/mastodon/features/keyboard_shortcuts/index.js
@@ -89,6 +89,10 @@ class KeyboardShortcuts extends ImmutablePureComponent {
                 <td><FormattedMessage id='keyboard_shortcuts.toot' defaultMessage='to start a brand new toot' /></td>
               </tr>
               <tr>
+                <td><kbd>alt</kbd>+<kbd>x</kbd></td>
+                <td><FormattedMessage id='keyboard_shortcuts.spoilers' defaultMessage='to show/hide CW field' /></td>
+              </tr>
+              <tr>
                 <td><kbd>backspace</kbd></td>
                 <td><FormattedMessage id='keyboard_shortcuts.back' defaultMessage='to navigate back' /></td>
               </tr>