 
   remove: =>
     @stopHandlingEvents()
-    atom.workspaceView.focus() if atom.workspaceView?
     super()

        @subview 'editor', new TextEditorView(mini: true)

  initialize: (@viewModel, opts = {})->
    @editor.setFontSize(atom.config.get('vim-mode.commandModeInputViewFontSize'))

    if opts.class?
      @editorContainer.addClass opts.class


      @editorContainer.addClass 'hidden-input'

    @singleChar = opts.singleChar
    @defaultText = opts.defaultText ? ''

    # If in test mode, don't append to anything, just initialize.
    if atom.workspace?
      atom.workspace.addBottomPanel(item: this, priority: 100)

    @focus()
    @handleEvents()
