fzhangtj 6 年前
当前提交
5d8c4b6f
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 5
      Runtime/service/keyboard.cs

5
Runtime/service/keyboard.cs


}
public override void setIMEPos(Offset imeGlobalPos) {
var converter = Window.instance as WindowScreenPosConverter;
D.assert(converter != null, $"window should implement {typeof(WindowScreenPosConverter).FullName}");
var canvasPos = converter.windowPosToScreenPos(imeGlobalPos);
var window = Window.instance as UIWidgetWindowAdapter;
var canvasPos = window.windowPosToScreenPos(imeGlobalPos);
UIWidgetsTextInputSetIMEPos(canvasPos.dx, canvasPos.dy);
}

正在加载...
取消
保存