Skip to main content

getFocus 获取最新的焦点

getFocus

类型: MethodDeclaration

定义位置: ui.ts

描述

获取最新的焦点

返回值

类型: UIElement \| undefined

源代码

位置: 第 418 行

public getFocus(): UIElement | undefined {
const focuses = this.focuses
return focuses[focuses.length - 1]
}

文档生成时间:2025/7/7 12:07:07