Skip to content

Commit

Permalink
Make sure controller gets updated when manually typing new mgmt key
Browse files Browse the repository at this point in the history
  • Loading branch information
fdennis committed Nov 9, 2023
1 parent 533c2d2 commit b9ba425
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/piv/views/manage_key_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,11 @@ class _ManageKeyDialogState extends ConsumerState<ManageKeyDialog> {
),
),
textInputAction: TextInputAction.next,
onChanged: (value) {
setState(() {
_keyController.text = value;
});
},
onSubmitted: (_) {
if (currentLenOk && newLenOk) {
_submit();
Expand Down

0 comments on commit b9ba425

Please sign in to comment.