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

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

Open
1 task done
dunkong opened this issue Jun 2, 2024 · 6 comments
Open
1 task done

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

dunkong opened this issue Jun 2, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@dunkong
Copy link

dunkong commented Jun 2, 2024

Affected version

0.16.0

No same issues found

  • 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 dunkong added the bug Something isn't working label Jun 2, 2024
@andycall
Copy link
Member

andycall commented Jun 2, 2024

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

@dunkong
Copy link
Author

dunkong commented Jun 2, 2024

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

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

@andycall
Copy link
Member

andycall commented Jun 2, 2024

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

@dunkong
Copy link
Author

dunkong commented Jun 2, 2024

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

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

@andycall
Copy link
Member

andycall commented Jun 2, 2024

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

@dunkong
Copy link
Author

dunkong commented Jun 2, 2024

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants