     ignoreErrors: ""
     mcCabeComplexityThreshold: ""
     validateOnSave: true
+  keyBindings: null
 
   @activate: ->
     view = new SimpleFlake8View
     @disposable = atom.commands.add 'atom-workspace', 'simple-flake8:toggle', -> view.toggle()
 
-  # @activate: ->
-  #   new SimpleFlake8View
-
   @deactivate: ->
     @disposable.dispose()
-
-  cancelled: -> @hide()
 
   activate: (state) ->
     atom.workspaceView.command 'simple-flake8:toggle', => @toggle()

  getFilterKey: ->
    'message'

  toggle: ->
    if @panel?.isVisible()
    # if @hasParent()

    else
      @attach()

  show: ->
    # Get out of here unless this is a python file
    editor = atom.workspace.getActiveEditor()
    return unless editor?
    return unless editor.getGrammar().name == 'Python'


    @panel ?= atom.workspace.addModalPanel(item: this)
