Upcoming release of WPF Virtual Keyboard adds support for Avalonia.XPF. If the control detects non-Windows system, it replaces the Windows native API -based keyboard emulation code with WPF event routing -based one. With that, the keyboard loses several features on Macos and Linux:
- sending keyboard events to a different process will not work;
- the keyboard cannot follow current input language of the OS (what you'd select from Windows taskbar), and it must be set manually:
vkb.InputLocale = new CultureInfo("de-DE")
- it can no longer query the OS for mapping from virtual key codes to key labels, which the keyboard uses to show standard layouts. Language details are now loaded from embedded resource tables, and we've only implemented a few languages so far (English, German, French, Spanish, Dutch, Swedish).
If anyone is interested in trying it, please install this pre-release nuget package, and let us know if you need a missing language with higher priority:
https://www.nuget.org/packages/MindFusion.Keyboard.Wpf/5.2.0-alpha1 Any comments, questions and general feedback are welcome.