webf icon indicating copy to clipboard operation
webf copied to clipboard

请问webf不支持键盘事件吗?

Open dunkong opened this issue 1 year ago • 6 comments

Affected version

0.16.0

No same issues found

  • [X] Yes, I search all issues but not found.

Bug type

JavaScript

Which frontend framework you are using.

vue2.x

Steps to reproduce

请问webf不支持键盘事件吗?监听键盘事件无反应

Code example

No response

Expected results

希望能支持键盘事件

Actual results

无法只keydown,keyup等键盘事件

dunkong avatar Jun 02 '24 15:06 dunkong

受制于flutter的限制,目前全局键盘事件只支持桌面端

andycall avatar Jun 02 '24 15:06 andycall

受制于flutter的限制,目前全局键盘事件只支持桌面端

感谢您的回答,这么晚了打扰您了,因为想用webf实现一个安卓tv项目,所以使用到了键盘事件,那利用dart和js之间的通信,模拟实现键盘事件的监听可行吗?

dunkong avatar Jun 02 '24 15:06 dunkong

问题就在dart这块, flutter engine 在移动端没提供这个功能

andycall avatar Jun 02 '24 15:06 andycall

问题就在dart这块, flutter engine 在移动端没提供这个功能

好吧,感谢大佬这么晚的解答,那看来这条路行不通了,不过我看有使用flutter制作成的安卓tv应用,那应该是有办法监听键盘事件的才对呀

dunkong avatar Jun 02 '24 16:06 dunkong

可能是我不清楚怎么搞,你可以研究一下。如果找到方法了记得通知我一下。

andycall avatar Jun 02 '24 16:06 andycall

可能是我不清楚怎么搞,你可以研究一下。如果找到方法了记得通知我一下。

好的大佬,感谢这么晚的耐心解答,我这边试试

dunkong avatar Jun 02 '24 16:06 dunkong

Landed in enterprise

andycall avatar Mar 10 '25 09:03 andycall