From a3c160a001796bd64c3ce2cf2df16f8da3eb4c52 Mon Sep 17 00:00:00 2001 From: Dennis Fokin Date: Thu, 9 Nov 2023 14:15:30 +0100 Subject: [PATCH] Make sure controller gets updated when manually typing new mgmt key --- lib/piv/views/manage_key_dialog.dart | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/piv/views/manage_key_dialog.dart b/lib/piv/views/manage_key_dialog.dart index fdb2e6ae..28389760 100644 --- a/lib/piv/views/manage_key_dialog.dart +++ b/lib/piv/views/manage_key_dialog.dart @@ -254,6 +254,11 @@ class _ManageKeyDialogState extends ConsumerState { ), ), textInputAction: TextInputAction.next, + onChanged: (_) { + setState(() { + // Update length + }); + }, onSubmitted: (_) { if (currentLenOk && newLenOk) { _submit();