mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 20:02:44 +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.
		
			
				
	
	
		
			15 lines
		
	
	
	
		
			367 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
	
		
			367 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| #import <DOM/EventTarget.idl>
 | |
| #import <HTML/HTMLElement.idl>
 | |
| 
 | |
| [Exposed=Nobody] interface Internals {
 | |
| 
 | |
|     undefined signalTextTestIsDone();
 | |
|     undefined gc();
 | |
|     object hitTest(double x, double y);
 | |
| 
 | |
|     undefined sendText(HTMLElement target, DOMString text);
 | |
|     undefined commitText();
 | |
| 
 | |
|     boolean dispatchUserActivatedEvent(EventTarget target, Event event);
 | |
| 
 | |
| };
 |