From bd5ca46dabd6cd01af52e9302c6d116ffa10ffbd Mon Sep 17 00:00:00 2001 From: yann300 Date: Mon, 12 Feb 2018 12:27:32 +0100 Subject: [PATCH] add nodeRightclick event --- remix-debugger/src/ui/TreeView.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/remix-debugger/src/ui/TreeView.js b/remix-debugger/src/ui/TreeView.js index 2c7e189546..5485a7bb81 100644 --- a/remix-debugger/src/ui/TreeView.js +++ b/remix-debugger/src/ui/TreeView.js @@ -92,6 +92,9 @@ class TreeView { label.onclick = function () { self.expand(keyPath) } + label.oncontextmenu = function (event) { + self.event.trigger('nodeRightClick', [key, data, label, event]) + } li.appendChild(list) } else { caret.style.visibility = 'hidden'