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"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:CefGlueTest"
        mc:Ignorable="d"
        Title="MainWindow" Height="900" Width="715" WindowState="Maximized">
    <Grid>
        <DockPanel x:Name="panelBrowser" LastChildFill="True">
            <WrapPanel DockPanel.Dock="Top">
                <TextBox x:Name="txtURL" Width="360" FontSize="14" Margin="10,0,0,0" Text="http://www.google.com"></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>
                <Button x:Name="btnBrowserSplitScreenHalf" FontSize="16" Margin="10,0,0,0" Content="Split Screen">
                </Button>
            </WrapPanel>
            <!-- here the CefGlue WinForms browser embedded in WindowsFormsHost is added at runtime -->
        </DockPanel>
    </Grid>
</Window>


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?
AndyB
Techie
 
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 2 guests

cron