                 @props.actions.send_edit(@props.message, mesg)
                 @setState(show_edit_input:false)
 
+    focus_endpoint: (e) ->
+        val = e.target.value
+        e.target.value = ''
+        e.target.value = val
+
     render: ->
         cols = [@avatar_column(), @content_column(), @blank_column()]
         # mirror right-left for sender's view

                     account_id       = {@props.account_id}
                     user_map         = {@props.user_map}
                     message          = {@props.messages.get(date)}
                     timestamp        = {date}
                     project_id       = {@props.project_id}
                     file_path        = {@props.file_path}
                     font_size        = {@props.font_size}

                onKeyDown = {@on_keydown}
                value     = {@state.edited_message}
                onChange  = {=>@setState(edited_message: @refs.editedMessage.getValue())}
                onFocus   = {@focus_endpoint}
                />
        </div>

