|
|
|
|
|
|
|
|
|
|
using System; |
|
|
|
using System.Collections.Generic; |
|
|
|
using System.Runtime.InteropServices; |
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public void setIMEPos(Offset imeGlobalPos) { |
|
|
|
var uiWidgetWindowAdapter = Window.instance as UIWidgetWindowAdapter; |
|
|
|
var uiWidgetWindowAdapter = Window.instance; |
|
|
|
Offset screenPos = uiWidgetWindowAdapter != null |
|
|
|
? uiWidgetWindowAdapter.windowPosToScreenPos(imeGlobalPos) |
|
|
|
: _editorWindowPosToScreenPos(imeGlobalPos); |
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
void _handleMethodCall(string method, List<JSONNode> args) { |
|
|
|
if (TextInput._currentConnection == null) { |
|
|
|
D.assert(false, () => "keyboard.handleMethodCall is not implemented yet!"); |
|
|
|
|
|
|
|
/*if (TextInput._currentConnection == null) { |
|
|
|
return; |
|
|
|
} |
|
|
|
int client = args[0].AsInt; |
|
|
|
|
|
|
default: |
|
|
|
throw new UIWidgetsError($"unknown method ${method}"); |
|
|
|
} |
|
|
|
} |
|
|
|
}*/ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|