(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.
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.
Chromium Embedded Framework (CEF) Copyright © 2011 Marshall A. Greenblatt