Skip to content
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

在触摸屏下,点击cef中页面的输入框,无法弹出系统虚拟键盘(软键盘)的问题 #503

Open
xiaobin-shi opened this issue Jun 14, 2024 · 1 comment

Comments

@xiaobin-shi
Copy link

在cef中加载百度网页,点击搜索栏,不会出现软键盘(虚拟键盘)。如果是桌面上的文本,点击后会自动弹出软键盘,或者是谷歌浏览器加载百度页面,点击搜索栏,也会自动弹出系统的软键盘(虚拟键盘)

用谷歌浏览器打开百度,点输入框弹出软键盘如下:
微信图片_20240614105948

用cef打开百度,点输入框,无法弹出软键盘如下:
微信图片_20240614110010

@nmgwddj
Copy link
Collaborator

nmgwddj commented Jun 14, 2024

请确认使用的是 CefControl(离屏渲染)还是 CefNativeControl(真窗口模式)?
离屏渲染情况下事件均是通过封装层转发到 duilib 的事件系统中的,而真窗口模式下事件是由原生 Cef 窗口实现的。这里可能会有一些差异,请关注。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants