{"action":"opened","issue":{"url":"https://api.github.com/repos/nwjs/nw.js/issues/4366","repository_url":"https://api.github.com/repos/nwjs/nw.js","labels_url":"https://api.github.com/repos/nwjs/nw.js/issues/4366/labels{/name}","comments_url":"https://api.github.com/repos/nwjs/nw.js/issues/4366/comments","events_url":"https://api.github.com/repos/nwjs/nw.js/issues/4366/events","html_url":"https://github.com/nwjs/nw.js/issues/4366","id":131593754,"number":4366,"title":"v0.13.0 NORMAL - inspect on right click","user":{"login":"kucix","id":444459,"avatar_url":"https://avatars.githubusercontent.com/u/444459?v=3","gravatar_id":"","url":"https://api.github.com/users/kucix","html_url":"https://github.com/kucix","followers_url":"https://api.github.com/users/kucix/followers","following_url":"https://api.github.com/users/kucix/following{/other_user}","gists_url":"https://api.github.com/users/kucix/gists{/gist_id}","starred_url":"https://api.github.com/users/kucix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kucix/subscriptions","organizations_url":"https://api.github.com/users/kucix/orgs","repos_url":"https://api.github.com/users/kucix/repos","events_url":"https://api.github.com/users/kucix/events{/privacy}","received_events_url":"https://api.github.com/users/kucix/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-05T09:24:28Z","updated_at":"2016-02-05T09:24:28Z","closed_at":null,"body":"Hi,\r\ni build simple browser for one webpage, webview fill entire page, plus few functions.\r\nIn normal version (non-sdk), if i right click on webview i get context menu with \"Inspect\".\r\nI tryied to disable with event listeners on contextmenu event with prevent default, but with no result.\r\n\r\n\r\n```javascript\r\ndocument.addEventListener(\"contextmenu\", function(e){\r\n\te.preventDefault();\r\n\te.stopPropagation();\r\n\treturn false;\r\n});\r\n\r\ndocument.getElementById('webview').addEventListener(\"contextmenu\", function(e){\r\n\te.preventDefault();\r\n\te.stopPropagation();\r\n\treturn false;\r\n});\r\n\r\ndocument.getElementById('webview').addEventListener(\"load\", function(e){\r\n\tdocument.getElementById('webview').executeScript({code:'document.addEventListener(\"contextmenu\", function(e) { e.preventDefault(); })'});\r\n});\r\n```\r\n\r\nHow do i get rid of the \"Inspect\" in final product?\r\n\r\nThanks"}}