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.
我有一个为带有触摸屏的 windows 计算机制作的电子应用程序。它基本上只是一个加载网站的 webview。
如果我在 chrome 上打开网站并触摸文本输入,它总是显示屏幕键盘。
如果我通过单击打开我的应用程序,它永远不会显示屏幕键盘。
如果我通过触摸打开我的应用程序,第一次触摸文本输入会显示屏幕键盘。但是以下触摸仅在输入失去焦点时(而不是在获得焦点时)显示键盘。
我不知道如何解决这个问题。
如果您需要查看我的代码的一部分,请告诉我。
谢谢
问题来自网络视图。我修改了我的应用程序以直接从 BrowserWindow 而不是 webview 加载 url,它运行良好。