   # Returns nothing.
   activateInsertMode: (transactionStarted = false)->
     @mode = 'insert'
+    @editorView.setInputEnabled?(true)
     @editor.beginTransaction() unless transactionStarted
     @submode = null
     @changeModeClass('insert-mode')


  deactivateInsertMode: ->
    return unless @mode == 'insert'
    @editor.commitTransaction()
    transaction = _.last(@editor.buffer.history.undoStack)
    item = @inputOperator(@history[0])

    params.id = 0;

    @setupCommandMode()
    @editorView.setInputEnabled?(false)
    @registerInsertIntercept()
    @registerInsertTransactionResets()
    if atom.config.get 'vim-mode.startInInsertMode'
