Chromium Embedded Framework (CEF)
122.1.5+gf09a9bc+chromium-122.0.6261.29
|
Implement this interface to handle events related to keyboard input. More...
#include "include/cef_keyboard_handler.h"
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 () |
Implement this interface to handle events related to keyboard input.
The methods of this class will be called on the UI thread.
|
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.
|
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.