CefSharp:我想在 ChromiumWebBrowse 中打开我的自定义键盘

CefSharp: I want to open my custom keyboard in the ChromiumWebBrowse

我想在 ChromiumWebBrowser 中打开我自己的键盘。我不知道如何去做。我无法确定输入元素的焦点。而我只需要自己的触摸键盘。我使用 CefSharp.WinForms 83.4.20.0。 Windows 7 和 Windows 8 , Windows 10

CefSettings settings = new CefSettings();
settings.CefCommandLineArgs["touch-events"] = "enabled";
settings.CefCommandLineArgs.Add("disable-usb-keyboard-detect", "1");
Cef.Initialize(settings)

这会调出 Windows 屏幕键盘,但我想调出自己的键盘。

我的问题解决了。此代码有助于连接我的键盘

浏览器设置

   CefSharpSettings.ShutdownOnExit = true;
   CefSettings settings = new CefSettings();
   settings.CachePath = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) + @"\CEF";
   settings.CefCommandLineArgs["print-preview"]= "disable";
   Cef.Initialize(settings, performDependencyCheck: true, browserProcessHandler: null);

键盘调用

ScreenKeyboard.Invoke(new Action(() =>
                        {
                            ScreenKeyboard.Visible = (task.Exception == null && task.Result);
                        }));