Keyboard error in Windows 10 Fall Creators update

Having problems with building or using the CefGlue .NET/Mono binding? Ask your questions here.

Moderator: fddima

Keyboard error in Windows 10 Fall Creators update

Postby AndyB » Thu Oct 26, 2017 8:54 am

In my WPF app i use CefGlue WinForms hosted in WindowsFormsHost.
Under certain circumstances the keyboard stops working.
Sample XAML:
Code: Select all
<Window x:Class="MainWindow"
        Title="MainWindow" Height="900" Width="715" WindowState="Maximized">
        <DockPanel x:Name="panelBrowser" LastChildFill="True">
            <WrapPanel DockPanel.Dock="Top">
                <TextBox x:Name="txtURL" Width="360" FontSize="14" Margin="10,0,0,0" Text=""></TextBox>
                <Button x:Name="btnLoadURL" Content="Go" FontSize="16" Padding="2,0,2,1" Margin="10,0,0,0"></Button>
                <Button x:Name="btnBrowserSplitScreenFull" FontSize="16" Margin="10,0,0,0" Content="Full Screen">
                <Button x:Name="btnBrowserSplitScreenHalf" FontSize="16" Margin="10,0,0,0" Content="Split Screen">
            <!-- here the CefGlue WinForms browser embedded in WindowsFormsHost is added at runtime -->

When i click on btnBrowserSplitScreenHalf i add a margin: panelBrowser.Margin = New Thickness(0, 500, 0, 0)
Clicking on btnBrowserSplitScreenFull removes the margin: panelBrowser.Margin = New Thickness(0, 0, 0, 0)

The keyboard works fine when i load a page.
But after adding the margin the keyboard stops working: When i then click in a text box and press keys on the keyboard nothing happens.
Also, the on-screen keyboard does not popup always when i click into a text box.

This error happens only when Windows 10 Fall Creators update is installed.
With Windows 8.1, Windows 10 Anniversary and Windows 10 Creators (April) the error does not occur, also not when .NET 4.7.1 is installed.
I can re-produce the error on Microsoft Surface Pro 3/4 tablets. It happened not in a VM with Fall update installed. Maybe it happens only on High-DPI devices.

I suspect this to be a bug in the Windows 10 Fall Creators update.
But the error does not happen with WindowsFormsHost and standard WinForms controls. Also not with standard WebBrowser control.
Any ideas for a workaround to fix this error?
Posts: 39
Joined: Sun Apr 16, 2017 3:00 pm

Return to CefGlue Forum

Who is online

Users browsing this forum: No registered users and 1 guest