Disable enter for touchscreens
This commit is contained in:
		
							parent
							
								
									033462653c
								
							
						
					
					
						commit
						e37dd8b93e
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -128,7 +128,7 @@ function onKeydown(ev: KeyboardEvent) {
 | 
			
		|||
	if ((ev.key === 'Enter') && (ev.ctrlKey || ev.metaKey)) {
 | 
			
		||||
		textEl.value += '\n';
 | 
			
		||||
	}
 | 
			
		||||
	else if (ev.key === 'Enter' && !ev.shiftKey && canSend) {
 | 
			
		||||
	else if (ev.key === 'Enter' && !ev.shiftKey && !('ontouchstart' in document.documentElement) && canSend) {
 | 
			
		||||
		send();
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue