hlwhl / webview_cef

WebView for Flutter Desktop Apps using CEF(Chromium Embedded Framework) [Work in Progress]
Apache License 2.0
176 stars 52 forks source link

Keyboard does not work on open sites #70

Closed reisclaudio closed 1 year ago

reisclaudio commented 1 year ago

I can't use the keyboard to type into fields within loaded sites. Is this normal for the library or some bug?

hotdang-ca commented 10 months ago

This actually still seems to be an issue. Why was it closed?

RubinTry commented 10 months ago

这个问题依然存在,windows11系统上,用了这个webview后,webview内无法使用键盘,插件版本0.1.0

xianxuzhen commented 4 months ago

windows11系统上,用了这个webview后,webview内无法使用键盘,插件版本0.1.0

jlcool commented 3 months ago

@SinyimZhi @hlwhl Can you help me take a look at this problem

hlwhl commented 3 months ago

@SinyimZhi @hlwhl Can you help me take a look at this problem

Which platform you encountered this issue? Please provide more details.

jlcool commented 3 months ago

@SinyimZhi @hlwhl Can you help me take a look at this problem

Which platform you encountered this issue? Please provide more details.

I am using Mac OS 14.2 (23C64) and Flutter 3.22.2 in the Apple M3 system. The default example is that the keyboard cannot be used, and there are also issues with the above characters in Windows 11

jlcool commented 3 months ago

@SinyimZhi @hlwhl Can you help me take a look at this problem

Which platform you encountered this issue? Please provide more details.

My own project can input numbers and letters, but the delete key, directional key, select all shortcut key, and even mouse box selection are not allowed

jlcool commented 3 months ago

@hlwhl 辛苦哥们再给看下,为什么直接运行example也是无法使用键盘呢,鼠标框选也不行,你机子上运行没这个问题吗? 测试了在windows11,flutter 3.22.2下运行example没有问题

jlcool commented 3 months ago

@SinyimZhi @hlwhl 我将CefWrapper.mm中processKeyboardEvent方法的!currentPlugin->_plugin->getAnyBrowserFocused()判断删除后键盘和鼠标就可以用了,就是鼠标选择的时候看起来没有选中状态,其他都没问题了

SinyimZhi commented 3 months ago

@SinyimZhi @hlwhl 我将CefWrapper.mm中processKeyboardEvent方法的!currentPlugin->_plugin->getAnyBrowserFocused()判断删除后键盘和鼠标就可以用了,就是鼠标选择的时候看起来没有选中状态,其他都没问题了

macos的适配我可能近期暂时做不了了,现在手上没有mac设备。。mac的ime适配之前在flutter 3.16版本上尝试做过,发现flutter的输入在macos上收不到回调,就没做下去了。

jlcool commented 3 months ago

@SinyimZhi @hlwhl 我将CefWrapper.mm中processKeyboardEvent方法的!currentPlugin->_plugin->getAnyBrowserFocused()判断删除后键盘和鼠标就可以用了,就是鼠标选择的时候看起来没有选中状态,其他都没问题了

macos的适配我可能近期暂时做不了了,现在手上没有mac设备。。mac的ime适配之前在flutter 3.16版本上0尝试做过,发现flutter的输入在macos上收不到回调,就没做下去了。

现在没有可用的mac版webview,就这个可以用一下,难啊😞

hlwhl commented 3 months ago

@SinyimZhi @hlwhl 我将CefWrapper.mm中processKeyboardEvent方法的!currentPlugin->_plugin->getAnyBrowserFocused()判断删除后键盘和鼠标就可以用了,就是鼠标选择的时候看起来没有选中状态,其他都没问题了

macos的适配我可能近期暂时做不了了,现在手上没有mac设备。。mac的ime适配之前在flutter 3.16版本上0尝试做过,发现flutter的输入在macos上收不到回调,就没做下去了。

现在没有可用的mac版webview,就这个可以用一下,难啊😞

只考虑macos的话可以看下官方插件的进度,处于一个基本可用的状态了 https://github.com/flutter/packages/pull/6221