         onFocus     = { @bound 'onFocus' }
         onBlur      = { @bound 'onBlur' }
         placeholder = 'Type your comment'
+        onKeyDown   = { @bound 'onKeyDown' }
         onChange    = { @props.handleCommentInputChange }
         value       = { @props.commentValue }
         className   = 'CommentInputWidget-input'/>

Avatar               = require 'app/components/profile/avatar'
ProfileLinkContainer = require 'app/components/profile/profilelinkcontainer'
classnames           = require 'classnames'

module.exports = class CommentInputWidget extends React.Component




  onBlur: (event) -> @setState focusOnInput: no


  onKeyDown: (event) ->

    if event.which is KeyboardKeys.ESC
      @props.cancelEdit()


  getPostButtonClassNames: -> classnames
