public CefKeyEventArgs(CefHandlerKeyEventType type, int code, CefHandlerKeyEventModifiers modifiers, bool isSystemKey) { this.type = type; this.code = code; this.modifiers = modifiers; this.isSystemKey = isSystemKey; }
protected override bool OnKeyEvent(CefBrowser browser, CefHandlerKeyEventType type, int code, CefHandlerKeyEventModifiers modifiers, bool isSystemKey, bool isAfterJavaScript) { #if DIAGNOSTICS Cef.Logger.Trace(LogTarget.CefKeyboardHandler, "OnKeyEvent: type=[{0}] code=[{1}] modifiers=[{2}] isSystemKey=[{3}] isAfterJavaScript=[{4}]", type, code, modifiers, isSystemKey, isAfterJavaScript); #endif // TODO: CefWebKeyboardHandler.OnKeyEvent: return this.context.PostKeyEvent(type, code, modifiers, isSystemKey); return(false); }
protected override bool OnKeyEvent(CefBrowser browser, CefHandlerKeyEventType type, int code, CefHandlerKeyEventModifiers modifiers, bool isSystemKey, bool isAfterJavaScript) { #if DIAGNOSTICS Cef.Logger.Trace(LogTarget.CefKeyboardHandler, "OnKeyEvent: type=[{0}] code=[{1}] modifiers=[{2}] isSystemKey=[{3}] isAfterJavaScript=[{4}]", type, code, modifiers, isSystemKey, isAfterJavaScript); #endif // TODO: CefWebKeyboardHandler.OnKeyEvent: return this.context.PostKeyEvent(type, code, modifiers, isSystemKey); return false; }
/// <summary> /// 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. /// </summary> protected virtual bool OnKeyEvent(CefBrowser browser, CefHandlerKeyEventType type, int code, CefHandlerKeyEventModifiers modifiers, bool isSystemKey, bool isAfterJavaScript) { return(false); }
protected override bool OnKeyEvent(CefBrowser browser, CefHandlerKeyEventType type, int code, CefHandlerKeyEventModifiers modifiers, bool isSystemKey, bool isAfterJavaScript) { return(base.OnKeyEvent(browser, type, code, modifiers, isSystemKey, isAfterJavaScript)); }
/// <summary> /// 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. /// </summary> protected virtual bool OnKeyEvent(CefBrowser browser, CefHandlerKeyEventType type, int code, CefHandlerKeyEventModifiers modifiers, bool isSystemKey, bool isAfterJavaScript) { return false; }