The below code opens up a url in a pywebview window
window = webview.create_window('Unreal Map Bridge', url='https://map.justgeektechs.com', height=height, width=width)
window.events.closed += on_closed
webview.start(func=custom_logic, args=window, debug=True, private_mode=False)
I want the user to be able to right click and access the normal right click context menu and debug tools for browsers. This only works if debug=True but the problem is that it automatically opens a new popup window of the DevTools. Is there a way to prevent the automatic open of the DevTools window will still enabling access to dev tools and browser context menu. Or another option is to automatically close the pop DevTools window. I tried but pywebview does not have access to the browser javascript api as in browser.windows.getAll().