From 7d56717cf56bc3535832e2a89e4a87c5ca753f1e Mon Sep 17 00:00:00 2001 From: 21pages Date: Mon, 3 Jun 2024 11:19:35 +0800 Subject: [PATCH] msgbox responds to numpadEnter as submit (#8248) Signed-off-by: 21pages --- flutter/lib/common.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {