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

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

    params.id = 0;

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