mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-20 23:48:05 +03:00
fixup! Call context menu item ::created hooks with the click event
This commit is contained in:
parent
703197bcca
commit
aec6df828e
@ -27,9 +27,9 @@ class ContextMenuManager
|
||||
@add '.workspace': [{
|
||||
label: 'Inspect Element'
|
||||
command: 'application:inspect'
|
||||
created: (item, event) ->
|
||||
created: (event) ->
|
||||
{pageX, pageY} = event
|
||||
item.commandOptions = {x: pageX, y: pageY}
|
||||
@commandOptions = {x: pageX, y: pageY}
|
||||
}]
|
||||
|
||||
atom.keymaps.onDidLoadBundledKeymaps => @loadPlatformItems()
|
||||
|
Loading…
Reference in New Issue
Block a user