Skip to content

Commit aabdb68

Browse files
committed
WPF - Pass 0 to SendKeyEvent as lparam instead of modifiers
Resolves #3462
1 parent 36de225 commit aabdb68

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

CefSharp.Wpf/Internals/WpfKeyboardHandler.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ public virtual void HandleKeyPress(KeyEventArgs e)
3737
{
3838
int message;
3939
int virtualKey = 0;
40-
var modifiers = e.GetModifiers();
4140

4241
switch (key)
4342
{
@@ -76,7 +75,7 @@ public virtual void HandleKeyPress(KeyEventArgs e)
7675
message = (int)(e.SystemKey != Key.None ? WM.SYSKEYUP : WM.KEYUP);
7776
}
7877

79-
browser.GetHost().SendKeyEvent(message, virtualKey, (int)modifiers);
78+
browser.GetHost().SendKeyEvent(message, virtualKey, 0);
8079
}
8180

8281
// Hooking the Tab key like this makes the tab focusing in essence work like

0 commit comments

Comments
 (0)