<arc-chat-input>

    <textarea name="message" placeholder="Shift(Control) + Enterで送信"></textarea>

    <style scoped>

        textarea {
            width: 100%;
            height: 100%;
            padding: 8px;
            font-size: 1.3em;
        }


    </style>


    <script>

        var self=this;

        $(this.message).on('keydown',function(e){

            if (e.keyCode == 13 && (e.shiftKey || e.ctrlKey ))
            {

                self.parent.addMessage($(this).val());

                $(this).val('');
                e.preventDefault();
                return false;
            }
        });


    </script>



</arc-chat-input>