mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-05-11 18:36:11 +02:00
msgbox responds to numpadEnter as submit (#8248)
Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
parent
32ef5f47f8
commit
7d56717cf5
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue