     openSettings: ->
       Extension.trigger "open.settings"
 
-    onKeyDown: (e) ->
+    onKeyDown: (e) =>
+      return unless App.open
+      e.stopPropagation()
       preventDefault = true
       unless App.loading
         switch e.which

    rawTemplate: template

    events:
      "keydown": "onKeyDown"
      "click .settings": "openSettings"

    initialize: ->


      @keepFocused()
      @escapeClose()

      document.addEventListener "keydown", @onKeyDown, true

      App.on "load.commands sync.commands",  =>
        return unless @$input
