-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Virtual Keyboard not appear in WPF #1736
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I got in touch with someone at Microsoft about the new virtual keyboard support in WPF 4.6.2 and here's what they said:
I'm going to play around with this over the coming days / weeks and let you know what I find. Thankfully for testing I can just subclass ChromiumWebBrowser and override OnCreateAutomationPeer and see what sort of stuff I can make work. Once I get it into a good enough state, I'll take the code I put in the subclass and add it to ChromiumWebBrowser and send over a PR. |
Thanks, I tested DisableWPFTabletSupport method recomended by microsoft to show the virtual keyboard, but as concecuence fails the touch scroll. I can´t update the framework .Net, the app is developed based in framework 4. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Currently there is no default implementation, you will have to inherit https://github.com/maximcus/WPFTabTip looks promising, will need to investigate further. |
@amaitland The way WPFTabTip does it (opening and killing tabtip.exe) will lead to lots of sadness. You want to use the InputPane APIs from the Windows Runtime. and https://github.com/Microsoft/WPF-Samples/blob/master/Input%20and%20Commands/TouchKeyboard/TouchKeyboardNotifier/TouchKeyboardEventManager.cs#L340..L350 for how to get an instance of an InputPane Once you have an instance, you can use TryShow() and TryHide(). https://docs.microsoft.com/en-us/uwp/api/windows.ui.viewmanagement.inputpane.tryshow |
@jeffxpx How does this behave on
This looks like With version |
As An example of using it will look like private void BrowserVirtualKeyboardRequested(object sender, VirtualKeyboardRequestedEventArgs e)
{
var inputPane = touchKeyboardEventManager.GetInputPane();
if (e.TextInputMode == TextInputMode.None)
{
inputPane.TryHide();
}
else
{
inputPane.TryShow();
}
} I've provided a very basic Someone can contribute a
Code adapted from https://github.com/Microsoft/WPF-Samples/blob/master/Input%20and%20Commands/TouchKeyboard/TouchKeyboardNotifier/Readme.md (which is thankfully |
|
Hello,
I've some issues with the virtual keyboard in the WebView on a Dell Optiplex 7440 used in tablet mode, without physical keyboard plugged.
WinForms
,WPF
orOffScreen
?Cef
TestApp from http://cefbuilds.com?The text was updated successfully, but these errors were encountered: