about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/features/composer/index.js
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2018-10-14 11:38:38 +0200
committerThibG <thib@sitedethib.com>2018-10-14 12:00:21 +0200
commitb0527a4ce702bfab8c53b31917038e7463b9d39c (patch)
tree6e331d9faa29c2cb4c5604f3ff7c42bd7ab074c8 /app/javascript/flavours/glitch/features/composer/index.js
parent70d346ea951ebfa002225759310d72882a435a5c (diff)
Handle alt+enter in the spoiler input as shortcut for secondary post
Fixes #780
Diffstat (limited to 'app/javascript/flavours/glitch/features/composer/index.js')
-rw-r--r--app/javascript/flavours/glitch/features/composer/index.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/javascript/flavours/glitch/features/composer/index.js b/app/javascript/flavours/glitch/features/composer/index.js
index 257797047..029b11a36 100644
--- a/app/javascript/flavours/glitch/features/composer/index.js
+++ b/app/javascript/flavours/glitch/features/composer/index.js
@@ -437,6 +437,7 @@ class Composer extends React.Component {
           intl={intl}
           onChange={handleChangeSpoiler}
           onSubmit={handleSubmit}
+          onSecondarySubmit={handleSecondarySubmit}
           text={spoilerText}
           ref={handleRefSpoilerText}
         />