Include inline commands in command palette

This commit is contained in:
Max Brunsfeld
2014-11-09 13:02:13 -08:00
committed by Nathan Sobo
parent bad0504e1d
commit 0c40a1ef92
2 changed files with 13 additions and 1 deletions

View File

@@ -144,6 +144,10 @@ class CommandRegistry
currentTarget = currentTarget.parentNode
break unless currentTarget?
for name, listeners of @inlineListenersByCommandName
if listeners.has(target)
commands.push({name, displayName: _.humanizeEventName(name)})
for name, displayName of $(target).events() when displayName
commands.push({name, displayName, jQuery: true})