From 9c35a0981ad3d6e46ab748b6da4aacb6df3799a2 Mon Sep 17 00:00:00 2001 From: LianJingWei <472222641@qq.com> Date: Wed, 12 Jun 2024 13:37:56 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E9=94=AE=E7=9B=98EnterKeyType=E6=98=A0?= =?UTF-8?q?=E5=B0=84=E8=A1=A5=E5=85=85EnterKeyType.Done?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ets/embedding/engine/systemchannels/TextInputChannel.ets | 2 ++ 1 file changed, 2 insertions(+) diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/systemchannels/TextInputChannel.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/systemchannels/TextInputChannel.ets index fdbbe4745f..f215947be4 100644 --- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/systemchannels/TextInputChannel.ets +++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/systemchannels/TextInputChannel.ets @@ -252,6 +252,8 @@ export class Configuration { return inputMethod.EnterKeyType.NEXT case "TextInputAction.newline": return inputMethod.EnterKeyType.NONE + case "TextInputAction.done": + return inputMethod.EnterKeyType.DONE default: // Present default key if bad input type is given. return inputMethod.EnterKeyType.UNSPECIFIED -- Gitee From 1c4538072444053e444de3323f995951c816cb99 Mon Sep 17 00:00:00 2001 From: LianJingWei <472222641@qq.com> Date: Wed, 12 Jun 2024 13:37:56 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E9=94=AE=E7=9B=98EnterKeyType=E6=98=A0?= =?UTF-8?q?=E5=B0=84=E8=A1=A5=E5=85=85EnterKeyType.Done?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: LianJingWei <472222641@qq.com> signoff --- .../ets/embedding/engine/systemchannels/TextInputChannel.ets | 2 ++ 1 file changed, 2 insertions(+) diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/systemchannels/TextInputChannel.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/systemchannels/TextInputChannel.ets index fdbbe4745f..f215947be4 100644 --- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/systemchannels/TextInputChannel.ets +++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/systemchannels/TextInputChannel.ets @@ -252,6 +252,8 @@ export class Configuration { return inputMethod.EnterKeyType.NEXT case "TextInputAction.newline": return inputMethod.EnterKeyType.NONE + case "TextInputAction.done": + return inputMethod.EnterKeyType.DONE default: // Present default key if bad input type is given. return inputMethod.EnterKeyType.UNSPECIFIED -- Gitee From b1c25b705baaf55ccbca80057f8bb443166fb83d Mon Sep 17 00:00:00 2001 From: LianJingWei <472222641@qq.com> Date: Wed, 12 Jun 2024 14:25:59 +0800 Subject: [PATCH 3/3] =?UTF-8?q?Revert=20"=E9=94=AE=E7=9B=98EnterKeyType?= =?UTF-8?q?=E6=98=A0=E5=B0=84=E8=A1=A5=E5=85=85EnterKeyType.Done"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 1c4538072444053e444de3323f995951c816cb99. --- .../ets/embedding/engine/systemchannels/TextInputChannel.ets | 2 -- 1 file changed, 2 deletions(-) diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/systemchannels/TextInputChannel.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/systemchannels/TextInputChannel.ets index f215947be4..fdbbe4745f 100644 --- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/systemchannels/TextInputChannel.ets +++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/embedding/engine/systemchannels/TextInputChannel.ets @@ -252,8 +252,6 @@ export class Configuration { return inputMethod.EnterKeyType.NEXT case "TextInputAction.newline": return inputMethod.EnterKeyType.NONE - case "TextInputAction.done": - return inputMethod.EnterKeyType.DONE default: // Present default key if bad input type is given. return inputMethod.EnterKeyType.UNSPECIFIED -- Gitee