diff --git a/ts/components/CompositionInput.tsx b/ts/components/CompositionInput.tsx index b3f8dff72..0e8ef9e4e 100644 --- a/ts/components/CompositionInput.tsx +++ b/ts/components/CompositionInput.tsx @@ -651,6 +651,7 @@ export const CompositionInput = ({ ); const editorKeybindingFn = React.useCallback( + // tslint:disable-next-line cyclomatic-complexity (e: React.KeyboardEvent): CompositionInputEditorCommand | null => { if (e.key === 'Enter' && emojiResults.length > 0) { e.preventDefault(); @@ -692,6 +693,13 @@ export const CompositionInput = ({ } } + // Get rid of Ctrl-Shift-M, which by default adds a newline + if ((e.key === 'm' || e.key === 'M') && e.shiftKey && e.ctrlKey) { + e.preventDefault(); + + return null; + } + return getDefaultKeyBinding(e); }, [emojiResults, large]