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:
@ -19,7 +19,7 @@
|
||||
int CEF_CALLBACK keyboard_handler_on_key_event(
|
||||
struct _cef_keyboard_handler_t* self, cef_browser_t* browser,
|
||||
enum cef_handler_keyevent_type_t type, int code, int modifiers,
|
||||
int isSystemKey)
|
||||
int isSystemKey, int isAfterJavaScript)
|
||||
{
|
||||
DCHECK(self);
|
||||
DCHECK(browser);
|
||||
@ -28,7 +28,7 @@ int CEF_CALLBACK keyboard_handler_on_key_event(
|
||||
|
||||
return CefKeyboardHandlerCppToC::Get(self)->OnKeyEvent(
|
||||
CefBrowserCToCpp::Wrap(browser), type, code,
|
||||
modifiers, isSystemKey?true:false);
|
||||
modifiers, isSystemKey?true:false, isAfterJavaScript?true:false);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user