mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-11-04 01:05:48 +01:00 
			
		
		
		
	Allow enter to select items from combobox's list (#7351)
This commit is contained in:
		
				
					committed by
					
						
						SmallJoker
					
				
			
			
				
	
			
			
			
						parent
						
							e8aad2ee00
						
					
				
				
					commit
					2b83af783b
				
			@@ -2981,7 +2981,9 @@ bool GUIFormSpecMenu::preprocessEvent(const SEvent& event)
 | 
			
		||||
			gui::IGUIElement *focused = Environment->getFocus();
 | 
			
		||||
			if (focused && isMyChild(focused) &&
 | 
			
		||||
					(focused->getType() == gui::EGUIET_LIST_BOX ||
 | 
			
		||||
					 focused->getType() == gui::EGUIET_CHECK_BOX)) {
 | 
			
		||||
					focused->getType() == gui::EGUIET_CHECK_BOX) &&
 | 
			
		||||
					(focused->getParent()->getType() != gui::EGUIET_COMBO_BOX ||
 | 
			
		||||
					event.KeyInput.Key != KEY_RETURN)) {
 | 
			
		||||
				OnEvent(event);
 | 
			
		||||
				return true;
 | 
			
		||||
			}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user