Implement this interface to handle context menu events.
Namespace: CefSharpCefSharp (in CefSharp.dll) Version: 118.6.80.0 (118.6.80.0)
Syntaxpublic interface IContextMenuHandler
public interface class IContextMenuHandler
The IContextMenuHandler type exposes the following members.
Methods Name Description OnBeforeContextMenuCalled before a context menu is displayed. The model can be cleared to show no context menu or modified to show a custom menu.
OnContextMenuCommandCalled to execute a command selected from the context menu. See cef_menu_id_t for the command ids that have default implementations. All user-defined command ids should be between MENU_ID_USER_FIRST and MENU_ID_USER_LAST.
OnContextMenuDismissedCalled when the context menu is dismissed irregardless of whether the menu was canceled or a command was selected.
RunContextMenuCalled to allow custom display of the context menu. For custom display return true and execute callback either synchronously or asynchronously with the selected command Id. For default display return false. Do not keep references to parameters or model outside of this callback.
Top See AlsoRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4