From a80075e12e8c8267c575dfc0c39639d677049a23 Mon Sep 17 00:00:00 2001 From: xingweizhu Date: Tue, 18 May 2021 11:53:25 +0800 Subject: [PATCH] fix doc validation issue --- .yamato/upm-ci.yml | 2 +- com.unity.uiwidgets/LICENSE.md | 2 +- com.unity.uiwidgets/Runtime/services/keyboard.cs | 10 +++++----- com.unity.uiwidgets/Runtime/services/keyboard_key.cs | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.yamato/upm-ci.yml b/.yamato/upm-ci.yml index 58b3c21e..2253ba04 100644 --- a/.yamato/upm-ci.yml +++ b/.yamato/upm-ci.yml @@ -1,5 +1,5 @@ test_editors: - - version: 2019.4/china_unity/staging + - version: 51fe52edbb02 test_platforms: - name: win type: Unity::VM diff --git a/com.unity.uiwidgets/LICENSE.md b/com.unity.uiwidgets/LICENSE.md index 3db347d0..51dff878 100644 --- a/com.unity.uiwidgets/LICENSE.md +++ b/com.unity.uiwidgets/LICENSE.md @@ -1,4 +1,4 @@ -UIWidgets copyright © 2020 Unity Technologies ApS +UIWidgets copyright © 2021 Unity Technologies ApS Licensed under the Unity Companion License for Unity-dependent projects--see [Unity Companion License](http://www.unity3d.com/legal/licenses/Unity_Companion_License). diff --git a/com.unity.uiwidgets/Runtime/services/keyboard.cs b/com.unity.uiwidgets/Runtime/services/keyboard.cs index 8e4853dc..36193c12 100644 --- a/com.unity.uiwidgets/Runtime/services/keyboard.cs +++ b/com.unity.uiwidgets/Runtime/services/keyboard.cs @@ -22,9 +22,9 @@ namespace Unity.UIWidgets.service { public readonly char input; public readonly TextInputAction? inputAction; - public RawInputKeyResponse(bool swallow, char input = '\0', TextInputAction? inputAction = null) { + public RawInputKeyResponse(bool swallow, int input = 0, TextInputAction? inputAction = null) { this.swallow = swallow; - this.input = input; + this.input = (char) input; this.inputAction = inputAction; } @@ -35,7 +35,7 @@ namespace Unity.UIWidgets.service { null); } - public static readonly RawInputKeyResponse swallowResponse = new RawInputKeyResponse(true, '\0', null); + public static readonly RawInputKeyResponse swallowResponse = new RawInputKeyResponse(true, 0, null); } interface KeyboardDelegate : IDisposable { @@ -44,7 +44,7 @@ namespace Unity.UIWidgets.service { void setEditingState(TextEditingValue value); void setEditableSizeAndTransform(Dictionary args); - + void setStyle(Dictionary args); void setIMEPos(Offset imeGlobalPos); @@ -153,7 +153,7 @@ namespace Unity.UIWidgets.service { _value = _value.deleteSelection(true); } } - else if (currentEvent.character != '\0') { + else if (currentEvent.character != 0) { _value = _value.clearCompose(); char ch = currentEvent.character; if (ch == '\r' || ch == 3) { diff --git a/com.unity.uiwidgets/Runtime/services/keyboard_key.cs b/com.unity.uiwidgets/Runtime/services/keyboard_key.cs index feea27ed..df519237 100644 --- a/com.unity.uiwidgets/Runtime/services/keyboard_key.cs +++ b/com.unity.uiwidgets/Runtime/services/keyboard_key.cs @@ -102,7 +102,7 @@ namespace Unity.UIWidgets.services { public override void debugFillProperties(DiagnosticPropertiesBuilder properties) { base.debugFillProperties(properties); - properties.add(new StringProperty("keyId", keyId.ToString().PadLeft(8, '\0'), showName: true)); + properties.add(new StringProperty("keyId", keyId.ToString().PadLeft(8, (char)0), showName: true)); properties.add(new StringProperty("keyLabel", keyLabel, showName: true)); properties.add(new StringProperty("debugName", debugName, showName: true, defaultValue: null)); }