title: WKWebView disable right click menu
body: <p>I have <code>WKWebView</code> and I want to disable/remove right click menu:</p>
  
  <p><a href="https://i.stack.imgur.com/Ke331.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ke331.png" alt="enter image description here"></a></p>
  
  <p>I found similar issues:</p>
  
  <p><a href="https://stackoverflow.com/questions/6585075/webview-load-custom-context-menu">webview load custom context menu</a></p>
  
  <p><a href="https://stackoverflow.com/questions/1251561/cocoa-webview-disable-all-interaction">Cocoa webView - Disable all interaction</a></p>
  
  <p>But I cant find </p>
  
  <pre><code>optional func webView(_ sender: WebView!,  contextMenuItemsForElement element: [AnyHashable : Any]!, 
       defaultMenuItems: [Any]!) -&gt; [Any]!
  </code></pre>
  
  <p><a href="https://developer.apple.com/documentation/webkit/webuidelegate/1387728-webview" rel="nofollow noreferrer">method</a> in <code>WKUIDelegate</code> or <code>WKNavigationDelegate</code></p>