Merge pull request #683 from ethereum/leafRightClick

add leafRightClick to TreeView
pull/7/head
yann300 7 years ago committed by GitHub
commit 414cf23b00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      remix-debugger/src/ui/TreeView.js

@ -95,8 +95,11 @@ class TreeView {
li.appendChild(list)
} else {
caret.style.visibility = 'hidden'
label.onclick = function () {
self.event.trigger('leafClick', [key, data, label])
label.oncontextmenu = function (event) {
self.event.trigger('leafRightClick', [key, data, label, event])
}
label.onclick = function (event) {
self.event.trigger('leafClick', [key, data, label, event])
}
}
return li

Loading…
Cancel
Save