mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 18:42:43 +00:00 
			
		
		
		
	 7edfeb7056
			
		
	
	
		7edfeb7056
		
	
	
	
	
		
			
			We currently fire the change event on <input> elements when they lose focus. The spec allows for us to also fire the event when changes are "committed", so long as such an action makes sense for the input type. This patch detects when the return key is entered in an <input> element and uses that as the commit action for text-related types. If no change has occurred since the last commit, no change event is fired.
		
			
				
	
	
		
			1 line
		
	
	
	
		
			18 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			1 line
		
	
	
	
		
			18 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| wfh :^)   wfh :^)
 |