# Class TCustomKeyboardHandler

Description
Hierarchy
Fields
Methods

## Unit

uCEFKeyboardHandler

## Declaration

`type TCustomKeyboardHandler = class(TCefKeyboardHandlerOwn)`

## Description

This item has no description.

## Hierarchy

- TInterfacedObject
- TCefBaseRefCountedOwn
- TCefKeyboardHandlerOwn
- TCustomKeyboardHandler

## Overview

### Fields

Protected | `FEvents: Pointer;`

### Methods

Protected | `function OnPreKeyEvent(const browser: ICefBrowser; const event: PCefKeyEvent; osEvent: TCefEventHandle; out isKeyboardShortcut: Boolean): Boolean; override;`
Protected | `function OnKeyEvent(const browser: ICefBrowser; const event: PCefKeyEvent; osEvent: TCefEventHandle): Boolean; override;`
Protected | `procedure RemoveReferences; override;`
Public | `constructor Create(const events : IChromiumEvents); reintroduce; virtual;`
Public | `destructor Destroy; override;`

## Description

### Fields

Protected | `FEvents: Pointer;`
This item has no description.

### Methods

Protected | `function OnPreKeyEvent(const browser: ICefBrowser; const event: PCefKeyEvent; osEvent: TCefEventHandle; out isKeyboardShortcut: Boolean): Boolean; override;`
This item has no description. Showing description inherited from ICefKeyboardHandler.OnPreKeyEvent. Called before a keyboard event is sent to the renderer. |event| contains information about the keyboard event. |os_event| 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 |is_keyboard_shortcut| to true (1) and return false (0).

Protected | `function OnKeyEvent(const browser: ICefBrowser; const event: PCefKeyEvent; osEvent: TCefEventHandle): Boolean; override;`
This item has no description. Showing description inherited from ICefKeyboardHandler.OnKeyEvent. Called after the renderer and JavaScript in the page has had a chance to handle the event. |event| contains information about the keyboard event. |os_event| is the operating system event message, if any. Return true (1) if the keyboard event was handled or false (0) otherwise.

Protected | `procedure RemoveReferences; override;`
This item has no description. Showing description inherited from ICefKeyboardHandler.RemoveReferences. Custom procedure to clear all references.

Public | `constructor Create(const events : IChromiumEvents); reintroduce; virtual;`
This item has no description.

Public | `destructor Destroy; override;`
This item has no description.

Generated by PasDoc 1.0.4.