msgbox responds to numpadEnter as submit (#8248)
Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
		
							parent
							
								
									32ef5f47f8
								
							
						
					
					
						commit
						7d56717cf5
					
				| @ -1008,7 +1008,7 @@ class CustomAlertDialog extends StatelessWidget { | |||||||
|           return KeyEventResult.handled; // avoid TextField exception on escape |           return KeyEventResult.handled; // avoid TextField exception on escape | ||||||
|         } else if (!tabTapped && |         } else if (!tabTapped && | ||||||
|             onSubmit != null && |             onSubmit != null && | ||||||
|             key.logicalKey == LogicalKeyboardKey.enter) { |             (key.logicalKey == LogicalKeyboardKey.enter || key.logicalKey == LogicalKeyboardKey.numpadEnter)) { | ||||||
|           if (key is RawKeyDownEvent) onSubmit?.call(); |           if (key is RawKeyDownEvent) onSubmit?.call(); | ||||||
|           return KeyEventResult.handled; |           return KeyEventResult.handled; | ||||||
|         } else if (key.logicalKey == LogicalKeyboardKey.tab) { |         } else if (key.logicalKey == LogicalKeyboardKey.tab) { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user