Click or drag to resize
CfxKeyboardHandler Class

[This is preliminary documentation and is subject to change.]

Implement this structure to handle events related to keyboard input. The functions of this structure will be called on the UI thread.
Inheritance Hierarchy
SystemObject
  ChromiumCfxObject
    ChromiumCfxBase
      ChromiumCfxClientBase
        ChromiumCfxKeyboardHandler

Namespace: Chromium
Assembly: ChromiumFX (in ChromiumFX.dll)
Syntax
public class CfxKeyboardHandler : CfxClientBase

The CfxKeyboardHandler type exposes the following members.

Constructors
  NameDescription
Public methodCfxKeyboardHandler
Initializes a new instance of the CfxKeyboardHandler class
Top
Properties
  NameDescription
Public propertyCallbacksDisabled
When true, all CEF callback events are disabled for this handler. Incoming callbacks will return default values to CEF.
(Inherited from CfxClientBase.)
Public propertyNativePtr
Provides access to the underlying native cef struct. This is a refcounted client struct derived from cef_base_t. Add a ref in order to keep it alive when this managed object go out of scope.
(Inherited from CfxClientBase.)
Top
Events
  NameDescription
Public eventOnKeyEvent
Called after the renderer and JavaScript in the page has had a chance to handle the event. |Event| contains information about the keyboard event. |OsEvent| is the operating system event message, if any. Return true (1) if the keyboard event was handled or false (0) otherwise.
Public eventOnPreKeyEvent
Called before a keyboard event is sent to the renderer. |Event| contains information about the keyboard event. |OsEvent| is the operating system event message, if any. Return true (1) if the event was handled or false (0) otherwise. If the event will be handled in on_key_event() as a keyboard shortcut set |IsKeyboardShortcut| to true (1) and return false (0).
Top
Remarks
See also the original CEF documentation in cef/include/capi/cef_keyboard_handler_capi.h.
See Also