mirror of
				https://gitlab.com/famedly/fluffychat.git
				synced 2025-11-04 06:17:26 +01:00 
			
		
		
		
	fix: Shift+Enter should delete selection
This commit is contained in:
		
							parent
							
								
									53b6c8bb28
								
							
						
					
					
						commit
						f4e2a57848
					
				@ -284,7 +284,7 @@ class InputBar extends StatelessWidget {
 | 
			
		||||
                  final messageWithoutNewLine =
 | 
			
		||||
                      controller.text.substring(0, val.selection.start) +
 | 
			
		||||
                          '\n' +
 | 
			
		||||
                          controller.text.substring(val.selection.start);
 | 
			
		||||
                          controller.text.substring(val.selection.end);
 | 
			
		||||
                  controller.value = TextEditingValue(
 | 
			
		||||
                    text: messageWithoutNewLine,
 | 
			
		||||
                    selection: TextSelection.fromPosition(
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user