[🐴] Don't submit the message on return press when on a phone (web input) (#4203)
move this to the `onKeyDown` prop Revert "do the same for tablets" This reverts commit 47c709e2734f2acf34f89dd5aca42a75a2b56270. do the same for tablets don't submit message if the device is a phone on web move `onTouchStart` to `browser.ts` globals
This commit is contained in:
		
							parent
							
								
									fa039e542d
								
							
						
					
					
						commit
						85782aeb93
					
				
					 4 changed files with 11 additions and 6 deletions
				
			
		| 
						 | 
				
			
			@ -1,2 +1,3 @@
 | 
			
		|||
export const isSafari = false
 | 
			
		||||
export const isFirefox = false
 | 
			
		||||
export const isTouchDevice = true
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,5 +2,6 @@
 | 
			
		|||
export const isSafari = /^((?!chrome|android).)*safari/i.test(
 | 
			
		||||
  navigator.userAgent,
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
export const isFirefox = /firefox|fxios/i.test(navigator.userAgent)
 | 
			
		||||
export const isTouchDevice =
 | 
			
		||||
  'ontouchstart' in window || navigator.maxTouchPoints > 1
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue