mirror of
https://github.com/atom/atom.git
synced 2026-01-22 13:28:01 -05:00
Include inline commands in command palette
This commit is contained in:
committed by
Nathan Sobo
parent
bad0504e1d
commit
0c40a1ef92
@@ -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})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user