IKeyboardHandlerOnPreKeyEvent Method |
Version 130.1.90Namespace: CefSharpAssembly: CefSharp (in CefSharp.dll) Version: 129.0.110.0 (129.0.110.0)
Syntax bool OnPreKeyEvent(
IWebBrowser chromiumWebBrowser,
IBrowser browser,
KeyType type,
int windowsKeyCode,
int nativeKeyCode,
CefEventFlags modifiers,
bool isSystemKey,
ref bool isKeyboardShortcut
)
bool OnPreKeyEvent(
IWebBrowser^ chromiumWebBrowser,
IBrowser^ browser,
KeyType type,
int windowsKeyCode,
int nativeKeyCode,
CefEventFlags modifiers,
bool isSystemKey,
bool% isKeyboardShortcut
)
Parameters
- chromiumWebBrowser IWebBrowser
- the ChromiumWebBrowser control
- browser IBrowser
- The browser instance.
- type KeyType
- Whether this was a key up/down/raw/etc...
- windowsKeyCode Int32
-
The Windows key code for the key event. This value is used by the DOM
specification. Sometimes it comes directly from the event (i.e. on
Windows) and sometimes it's determined using a mapping function. See
WebCore/platform/chromium/KeyboardCodes.h for the list of values.
- nativeKeyCode Int32
- The native key code. On Windows this appears to be in the format of WM_KEYDOWN/WM_KEYUP/etc... lParam data.
- modifiers CefEventFlags
- What other modifier keys are currently down: Shift/Control/Alt/OS X Command/etc...
- isSystemKey Boolean
-
Indicates whether the event is considered a "system key" event (see
http://msdn.microsoft.com/en-us/library/ms646286(VS.85).aspx for details).
- isKeyboardShortcut Boolean
- See the summary for an explanation of when to set this to true.
Return Value
BooleanReturns true if the event was handled or false otherwise.
See Also