Skip to content

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

msgbox responds to numpadEnter as submit (#8248)

21pages7d56717cf56b
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) {