4.6 Interaction 交互 - Keyboard键盘


(板栗:这个模块不懂啥意思怎么用)
Capture key presses from the computer keyboard. Useful for quickly toggling a switch.
Use a Material Text Field or iOS Text Field for free text input.
从电脑键盘捕获按键。用于快速切换开关。
使用Material Text Field或 iOS Text Field设置文本输入。

输入口
Key 键
A text string representing the key on the keyboard to capture.
表示键盘上捕获的键的文本字符。(板栗:可能是定义输入哪个键吧~)

输出口
Down 按下
A boolean that is true when the key is pressed.
按下键时布尔值为真。


Related Patches 相关模块

Text Field


最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容