mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
- Add new call to OnKeyEvent() to allow handling of keyboard events before they're passed to the renderer (issue #406).
- Windows: only scroll with middle mouse button when the cursor is over the view (issue #410). git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@356 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@@ -17,13 +17,14 @@
|
||||
// VIRTUAL METHODS - Body may be edited by hand.
|
||||
|
||||
bool CefKeyboardHandlerCToCpp::OnKeyEvent(CefRefPtr<CefBrowser> browser,
|
||||
KeyEventType type, int code, int modifiers, bool isSystemKey)
|
||||
KeyEventType type, int code, int modifiers, bool isSystemKey,
|
||||
bool isAfterJavaScript)
|
||||
{
|
||||
if (CEF_MEMBER_MISSING(struct_, on_key_event))
|
||||
return false;
|
||||
|
||||
return struct_->on_key_event(struct_, CefBrowserCppToC::Wrap(browser),
|
||||
type, code, modifiers, isSystemKey) ? true : false;
|
||||
type, code, modifiers, isSystemKey, isAfterJavaScript) ? true : false;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user