Fix context menu in devtools.
This commit is contained in:
parent
2312f84ec9
commit
7b93a19e9b
3 changed files with 10 additions and 13 deletions
|
@ -1,11 +1,7 @@
|
|||
window.onload = ->
|
||||
# Use menu API to show context menu.
|
||||
WebInspector.ContextMenu.prototype.show = ->
|
||||
menuObject = @_buildDescriptor()
|
||||
if menuObject.length
|
||||
WebInspector._contextMenu = this
|
||||
createMenu(menuObject, @_event)
|
||||
@_event.consume()
|
||||
InspectorFrontendHost.showContextMenu = (event, items) ->
|
||||
createMenu items, event
|
||||
|
||||
# Use dialog API to override file chooser dialog.
|
||||
WebInspector.createFileSelectorElement = (callback) ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue