From 9fdf713e9b824431506f9e06e468cd9deac56b62 Mon Sep 17 00:00:00 2001 From: Cedric GESTES Date: Thu, 23 Jan 2020 21:09:28 +0100 Subject: [PATCH] input: fix return key not always working --- packages/zefyr/lib/src/widgets/input.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/zefyr/lib/src/widgets/input.dart b/packages/zefyr/lib/src/widgets/input.dart index 8f5f8b82d..706322ac8 100644 --- a/packages/zefyr/lib/src/widgets/input.dart +++ b/packages/zefyr/lib/src/widgets/input.dart @@ -97,6 +97,9 @@ class InputConnectionController implements TextInputClient { @override void performAction(TextInputAction action) { // no-op + final val = _lastKnownRemoteTextEditingValue; + onValueChanged(val.selection.start, '', '\n', + TextSelection.collapsed(offset: val.selection.start + 1)); } @override