diff --git a/app/javascript/flavours/glitch/features/compose/components/compose_form.jsx b/app/javascript/flavours/glitch/features/compose/components/compose_form.jsx
index ac5ff73928985d..eb28379f0abb8a 100644
--- a/app/javascript/flavours/glitch/features/compose/components/compose_form.jsx
+++ b/app/javascript/flavours/glitch/features/compose/components/compose_form.jsx
@@ -33,6 +33,7 @@ import { FederationButton } from './federation_button';
import { NavigationBar } from './navigation_bar';
import { PollForm } from "./poll_form";
import { ReplyIndicator } from './reply_indicator';
+import { SecondaryPrivacyButton } from './secondary_privacy_button';
import { ThreadModeButton } from './thread_mode_button';
const allowedAroundShortCode = '><\u0085\u0020\u00a0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\u0009\u000a\u000b\u000c\u000d';
@@ -53,6 +54,7 @@ class ComposeForm extends ImmutablePureComponent {
spoiler: PropTypes.bool,
spoilerAlwaysOn: PropTypes.bool,
privacy: PropTypes.string,
+ sideArm: PropTypes.string,
spoilerText: PropTypes.string,
focusDate: PropTypes.instanceOf(Date),
caretPosition: PropTypes.number,
@@ -100,6 +102,10 @@ class ComposeForm extends ImmutablePureComponent {
if (e.keyCode === 13 && (e.ctrlKey || e.metaKey)) {
this.handleSubmit();
}
+
+ if (e.keyCode === 13 && e.altKey) {
+ this.handleSecondarySubmit();
+ }
};
getFulltextForCharacterCounting = () => {
@@ -132,6 +138,11 @@ class ComposeForm extends ImmutablePureComponent {
}
};
+ handleSecondarySubmit = () => {
+ const { sideArm } = this.props;
+ this.handleSubmit(null, sideArm === 'none' ? null : sideArm);
+ };
+
onSuggestionsClearRequested = () => {
this.props.onClearSuggestions();
};
@@ -310,6 +321,7 @@ class ComposeForm extends ImmutablePureComponent {
+