Chromium Embedded Framework (CEF)  131.2.1+ge081753+chromium-131.0.6778.13
CefKeyboardHandler Class Reference

Implement this interface to handle events related to keyboard input. More...

#include "include/cef_keyboard_handler.h"

Inheritance diagram for CefKeyboardHandler:
CefBaseRefCounted

Public Member Functions

virtual bool OnPreKeyEvent (CefRefPtr< CefBrowser > browser, const CefKeyEvent &event, CefEventHandle os_event, bool *is_keyboard_shortcut)
 Called before a keyboard event is sent to the renderer. More...
 
virtual bool OnKeyEvent (CefRefPtr< CefBrowser > browser, const CefKeyEvent &event, CefEventHandle os_event)
 Called after the renderer and JavaScript in the page has had a chance to handle the event. More...
 
- Public Member Functions inherited from CefBaseRefCounted
virtual void AddRef () const =0
 Called to increment the reference count for the object. More...
 
virtual bool Release () const =0
 Called to decrement the reference count for the object. More...
 
virtual bool HasOneRef () const =0
 Returns true if the reference count is 1. More...
 
virtual bool HasAtLeastOneRef () const =0
 Returns true if the reference count is at least 1. More...
 

Additional Inherited Members

- Protected Member Functions inherited from CefBaseRefCounted
virtual ~CefBaseRefCounted ()
 

Detailed Description

Implement this interface to handle events related to keyboard input.

The methods of this class will be called on the UI thread.

Member Function Documentation

◆ OnKeyEvent()

virtual bool CefKeyboardHandler::OnKeyEvent ( CefRefPtr< CefBrowser browser,
const CefKeyEvent event,
CefEventHandle  os_event 
)
inlinevirtual

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 if the keyboard event was handled or false otherwise.

◆ OnPreKeyEvent()

virtual bool CefKeyboardHandler::OnPreKeyEvent ( CefRefPtr< CefBrowser browser,
const CefKeyEvent event,
CefEventHandle  os_event,
bool *  is_keyboard_shortcut 
)
inlinevirtual

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 if the event was handled or false otherwise. If the event will be handled in OnKeyEvent() as a keyboard shortcut set |is_keyboard_shortcut| to true and return false.


The documentation for this class was generated from the following file: