Click or drag to resize
CfxOnPreKeyEventEventArgs Class

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

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).
Inheritance Hierarchy
SystemObject
  SystemEventArgs
    ChromiumCfxEventArgs
      Chromium.EventCfxOnPreKeyEventEventArgs

Namespace: Chromium.Event
Assembly: ChromiumFX (in ChromiumFX.dll)
Syntax
public class CfxOnPreKeyEventEventArgs : CfxEventArgs

The CfxOnPreKeyEventEventArgs type exposes the following members.

Properties
  NameDescription
Public propertyBrowser
Get the Browser parameter for the OnPreKeyEvent callback.
Public propertyEvent
Get the Event parameter for the OnPreKeyEvent callback.
Public propertyIsKeyboardShortcut
Set the IsKeyboardShortcut out parameter for the OnPreKeyEvent callback.
Public propertyOsEvent
Get the OsEvent parameter for the OnPreKeyEvent callback.
Top
Methods
  NameDescription
Public methodSetReturnValue
Set the return value for the OnPreKeyEvent callback. Calling SetReturnValue() more then once per callback or from different event handlers will cause an exception to be thrown.
Top
Remarks
See also the original CEF documentation in cef/include/capi/cef_keyboard_handler_capi.h.
See Also