mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 09:42:45 +00:00 
			
		
		
		
	 906ac71eca
			
		
	
	
		906ac71eca
		
	
	
	
	
		
			
			Change `EventHandler::handle_keydown()` to no longer assume the cursor position's node is always a `DOM::Text`. While this assumption holds for `HTMLInputElement` that has a shadow DOM with a text node, an empty `contenteditable` might not have any children. With this change, `handle_keydown()` creates a new text node if the cursor position's node is not a text node.
		
			
				
	
	
		
			1 line
		
	
	
	
		
			8 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			1 line
		
	
	
	
		
			8 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| hello  
 |