Click or drag to resize

IMenuModelSetAccelerator Method

Version 130.1.90
Set the keyboard accelerator for the specified commandId.

Namespace: CefSharp
Assembly: CefSharp (in CefSharp.dll) Version: 129.0.110.0 (129.0.110.0)
Syntax
bool SetAccelerator(
	CefMenuCommand commandId,
	int keyCode,
	bool shiftPressed,
	bool ctrlPressed,
	bool altPressed
)

Parameters

commandId  CefMenuCommand
the command Id
keyCode  Int32
keyCode can be any key or character value.
shiftPressed  Boolean
shift key pressed
ctrlPressed  Boolean
ctrl key pressed
altPressed  Boolean
alt key pressed

Return Value

Boolean
Returns true on success.
See Also