IMenuModelSetAccelerator Method  | 
Version 93.1.111 
            Set the keyboard accelerator for the specified commandId. 
            
 
    Namespace: 
   CefSharp
    Assembly:
   CefSharp (in CefSharp.dll) Version: 93.1.111.0 (93.1.111.0)
Syntaxbool SetAccelerator(
	CefMenuCommand commandId,
	int keyCode,
	bool shiftPressed,
	bool ctrlPressed,
	bool altPressed
)
bool SetAccelerator(
	CefMenuCommand commandId, 
	int keyCode, 
	bool shiftPressed, 
	bool ctrlPressed, 
	bool altPressed
)
Parameters
- commandId
 - Type: CefSharpCefMenuCommand
the command Id - keyCode
 - Type: SystemInt32
keyCode can be any key or character value.  - shiftPressed
 - Type: SystemBoolean
shift key pressed - ctrlPressed
 - Type: SystemBoolean
ctrl key pressed - altPressed
 - Type: SystemBoolean
alt key pressed 
Return Value
Type: 
BooleanReturns true on success.
See Also