Click or drag to resize
IKeyboardHandler Interface
Version 51.0.0
Implement this interface to handle events related to keyboard input.

Namespace: CefSharp
Assembly: CefSharp (in CefSharp.dll) Version: (
public interface IKeyboardHandler

The IKeyboardHandler type exposes the following members.

Public methodOnKeyEvent
Called after the renderer and JavaScript in the page has had a chance to handle the event. Return true if the keyboard event was handled or false otherwise.
Public methodOnPreKeyEvent
Called before a keyboard event is sent to the renderer. Return true if the event was handled or false otherwise. If the event will be handled in OnKeyEvent(IWebBrowser, IBrowser, KeyType, Int32, Int32, CefEventFlags, Boolean) as a keyboard shortcut set isKeyboardShortcut to true and return false.
See Also