mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Add support for intercepting key events (Issue #63, patch by cpinfold.joinerysoft)
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@70 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@@ -349,6 +349,17 @@ CefHandler::RetVal CefHandlerCToCpp::HandleSetFocus(
|
||||
isWidget);
|
||||
}
|
||||
|
||||
CefHandler::RetVal CefHandlerCToCpp::HandleKeyEvent(
|
||||
CefRefPtr<CefBrowser> browser, KeyEventType type, int code, int modifiers,
|
||||
bool isSystemKey)
|
||||
{
|
||||
if(CEF_MEMBER_MISSING(struct_, handle_key_event))
|
||||
return RV_CONTINUE;
|
||||
|
||||
return struct_->handle_key_event(struct_, CefBrowserCppToC::Wrap(browser),
|
||||
type, code, modifiers, isSystemKey);
|
||||
}
|
||||
|
||||
|
||||
#ifdef _DEBUG
|
||||
long CefCToCpp<CefHandlerCToCpp, CefHandler, cef_handler_t>::DebugObjCt = 0;
|
||||
|
Reference in New Issue
Block a user