forked from MapComplete/MapComplete
		
	UX: textfields now submit on Ctrl+Enter instead of Enter
This commit is contained in:
		
							parent
							
								
									fb46381d10
								
							
						
					
					
						commit
						4fdd586a3c
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -55,7 +55,7 @@
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  function onKeyPress(e: KeyboardEvent) {
 | 
					  function onKeyPress(e: KeyboardEvent) {
 | 
				
			||||||
    if (e.key === "Enter") {
 | 
					    if (e.key === "Enter" && (!validator.textArea || e.ctrlKey)) {
 | 
				
			||||||
      e.stopPropagation()
 | 
					      e.stopPropagation()
 | 
				
			||||||
      e.preventDefault()
 | 
					      e.preventDefault()
 | 
				
			||||||
      dispatch("submit")
 | 
					      dispatch("submit")
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue