 
   findCommands: ({target}) ->
     commands = []
+    target = @rootNode unless @rootNode.contains(target)
     currentTarget = target
     loop
       for commandName, listeners of @listenersByCommandName


      break if currentTarget is @rootNode
      currentTarget = currentTarget.parentNode

    commands


{Disposable, CompositeDisposable} = require 'event-kit'
{specificity} = require 'clear-cut'
_ = require 'underscore-plus'
{$} = require './space-pen-extensions'

SequenceCount = 0
SpecificityCache = {}
