                         textarea
                             className: 'editor',
                             ref: 'content',
+                            onKeyDown: @onKeyDown,
                             defaultValue: @linkState('text').value
 
                 div className: 'attachements',

                            className: 'rt-editor form-control',
                            ref: 'html',
                            contentEditable: true,
                            dangerouslySetInnerHTML: {
                                __html: @linkState('html').value
                            }

    onToggleBcc: (e) ->
        toggle = (e) -> e.classList.toggle 'shown'
        toggle e for e in @getDOMNode().querySelectorAll '.compose-bcc'

    onKeyDown: (evt) ->
        if evt.ctrlKey and evt.key is 'Enter'
            @onSend()
