Welcome Guest Search | Active Topics | Sign In | Register

WebBrowser mishandling simulated keyboard input Options
Raj Batchu
Posted: Thursday, February 16, 2023 11:17:34 AM
Rank: Newbie
Groups: Member

Joined: 12/12/2019
Posts: 8
Hi,

We use the WebBrowser in a full-screen WPF UI where keyboard input is simulated. We're currently using version 21.2.47, after upgrading to the latest, we found that simulated text entry is broken, but individual characters continue to work.

The issue can be reproduced by focusing Google search box in the UI and then clicking the simulate input button, I have attached the code used to reproduce the issue

packages used in the project:
<ItemGroup>
<!-- Broken -->
<!--<PackageReference Include="EO.WebBrowser.Wpf" Version="23.1.15" />-->

<!-- Works -->
<PackageReference Include="EO.WebBrowser.Wpf" Version="21.3.18" />
<PackageReference Include="InputSimulator" Version="1.0.4" />
</ItemGroup>

MainWindow xaml content
<DockPanel>
<Button Content="Simulate Input" DockPanel.Dock="Top" Click="ButtonBase_OnClick" Focusable="False" />
<eo:WebControl>
<eo:WebControl.WebView>
<eo:WebView Url="https://www.google.com/" />
</eo:WebControl.WebView>
</eo:WebControl>
</DockPanel>

MainWindow code behind
public partial class MainWindow : Window
{
private InputSimulator _simulator;
public MainWindow()
{
InitializeComponent();
_simulator = new InputSimulator();
}

private void ButtonBase_OnClick(object sender, RoutedEventArgs e)
{
_simulator.Keyboard.TextEntry("test@gmail.com");
}
}


eo_support
Posted: Tuesday, February 21, 2023 7:24:33 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Hi,

We have sent a test build to you to your email. Please take a look and let us know if it resolves the issue for you.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.