Skip to content
slint
import { LineEdit } from "std-widgets.slint";
component VKB { Rectangle { background: yellow; }}
export component Example inherits Window { width:200px; height:100px; VerticalLayout { LineEdit {} FocusScope {} if TextInputInterface.text-input-focused: VKB {} }}

##属性

TextInputInterface.text-input-focused 属性可用于确定 TextInput元素是否具有焦点。 如果你正在实现自己的虚拟键盘,则此属性是指示应显示还是隐藏虚拟键盘的指标。

text-input-focused

布尔值 默认:false

如果 TextInput元素具有焦点,则为 true;否则为 false。

基于 MIT 协议发布