Overview   Project   Class   Tree   Index 
CEF C++ API Docs - Revision 1123
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

(default)
Class CefKeyboardHandler

CefBase
   |
   +--CefKeyboardHandler

   in cef_keyboard_handler.h

class CefKeyboardHandler
extends CefBase

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


Inner Classes, Typedefs, and Enums
typedef CefKeyboardHandler::KeyEventType
          
 
Method Summary
 virtual bool OnKeyEvent( CefRefPtr< CefBrowser > browser, CefKeyboardHandler::KeyEventType type, int code, int modifiers, bool isSystemKey, bool isAfterJavaScript )
          Called when the browser component receives a keyboard event.
   
Methods inherited from class CefBase
AddRef, Release, GetRefCt
 

Method Detail

OnKeyEvent

public virtual bool OnKeyEvent( CefRefPtr< CefBrowser > browser, CefKeyboardHandler::KeyEventType type, int code, int modifiers, bool isSystemKey, bool isAfterJavaScript );
Called when the browser component receives a keyboard event. This method is called both before the event is passed to the renderer and after JavaScript in the page has had a chance to handle the event. |type| is the type of keyboard event, |code| is the windows scan-code for the event, |modifiers| is a set of bit- flags describing any pressed modifier keys and |isSystemKey| is true if Windows considers this a 'system key' message (see http://msdn.microsoft.com/en-us/library/ms646286(VS.85).aspx). If |isAfterJavaScript| is true then JavaScript in the page has had a chance to handle the event and has chosen not to. Only RAWKEYDOWN, KEYDOWN and CHAR events will be sent with |isAfterJavaScript| set to true. Return true if the keyboard event was handled or false to allow continued handling of the event by the renderer.

 Overview   Project   Class   Tree   Index 
CEF C++ API Docs - Revision 1123
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

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