Overview   Project   Class   Tree   Index 
CEF3 C++ API Docs - Version 3.3578.1860.g36610bd
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

(default)
Class CefKeyboardHandler

CefBaseRefCounted
   |
   +--CefKeyboardHandler

   in cef_keyboard_handler.h

class CefKeyboardHandler
extends CefBaseRefCounted

Implement this interface to handle events related to keyboard input. The methods of this class will be called on the UI thread.


Method Summary
 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.
 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.
   
Methods inherited from class CefBaseRefCounted
AddRef, Release, HasOneRef, HasAtLeastOneRef
 

Method Detail

OnKeyEvent

public 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. |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

public 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. |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.

 Overview   Project   Class   Tree   Index 
CEF3 C++ API Docs - Version 3.3578.1860.g36610bd
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

Chromium Embedded Framework (CEF) Copyright © 2016 Marshall A. Greenblatt