mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-05 11:42:36 +00:00
WPF - Pass 0 to SendKeyEvent as lparam instead of modifiers
Resolves #3462
This commit is contained in:
@@ -37,7 +37,6 @@ namespace CefSharp.Wpf.Internals
|
||||
{
|
||||
int message;
|
||||
int virtualKey = 0;
|
||||
var modifiers = e.GetModifiers();
|
||||
|
||||
switch (key)
|
||||
{
|
||||
@@ -76,7 +75,7 @@ namespace CefSharp.Wpf.Internals
|
||||
message = (int)(e.SystemKey != Key.None ? WM.SYSKEYUP : WM.KEYUP);
|
||||
}
|
||||
|
||||
browser.GetHost().SendKeyEvent(message, virtualKey, (int)modifiers);
|
||||
browser.GetHost().SendKeyEvent(message, virtualKey, 0);
|
||||
}
|
||||
|
||||
// Hooking the Tab key like this makes the tab focusing in essence work like
|
||||
|
||||
Reference in New Issue
Block a user