浏览代码

Merge pull request #252 from Unity-Technologies/fix_text_input_action_issue

Fix TextInputAction for desktop
/main
GitHub 3 年前
当前提交
d3ef67b7
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. 7
      com.unity.uiwidgets/Runtime/services/keyboard.cs

7
com.unity.uiwidgets/Runtime/services/keyboard.cs


TextEditingValue _value;
TextInputConfiguration _textInputConfiguration;
public void show() {
}

public void setClient(int client, TextInputConfiguration configuration) {
_client = client;
_textInputConfiguration = configuration;
_textInputConfiguration = null;
}
public bool imeRequired() {

}
if (ch == '\n') {
Timer.create(TimeSpan.Zero, () => { TextInput._performAction(_client, TextInputAction.newline); });
Timer.create(TimeSpan.Zero, () => { TextInput._performAction(_client,
_textInputConfiguration?.inputAction ?? TextInputAction.newline); });
}
if (_validateCharacter(ch)) {

正在加载...
取消
保存