API 参考ui 模块getFocus 获取最新的焦点本页总览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