Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用Cefsharp 版本 37 (c#)。
如何使CefSharp 浏览器响应鼠标点击作为触摸点击。
当CefBrowser中的文本控件获得焦点时,我想提升 win 8.1 的触摸键盘。
我没有on-focus在 CefBrowser 浏览器中发现任何引发控制的事件。
on-focus
谢谢。
从技术上讲,您应该能够在初始化中使用此代码来启用触摸事件
var settings = new CefSettings { BrowserSubprocessPath = "CefSharp.BrowserSubprocess.exe" }; settings.CefCommandLineArgs["touch-events"] = "enabled"; Cef.Initialize(settings);
看看这是否适合您,看来 WPF 支持仍然不存在。关注此线程以获取更多信息
https://github.com/cefsharp/CefSharp/issues/228