diff --git a/flutter/lib/common.dart b/flutter/lib/common.dart index 9741cccf1..4fbc37b12 100644 --- a/flutter/lib/common.dart +++ b/flutter/lib/common.dart @@ -1008,7 +1008,7 @@ class CustomAlertDialog extends StatelessWidget { return KeyEventResult.handled; // avoid TextField exception on escape } else if (!tabTapped && onSubmit != null && - key.logicalKey == LogicalKeyboardKey.enter) { + (key.logicalKey == LogicalKeyboardKey.enter || key.logicalKey == LogicalKeyboardKey.numpadEnter)) { if (key is RawKeyDownEvent) onSubmit?.call(); return KeyEventResult.handled; } else if (key.logicalKey == LogicalKeyboardKey.tab) {