mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-11-04 09:15:29 +01:00 
			
		
		
		
	Different implementation of KeyPress::operator==
Fixes some key mapping issues.
This commit is contained in:
		@@ -36,7 +36,8 @@ public:
 | 
			
		||||
 | 
			
		||||
	bool operator==(const KeyPress &o) const
 | 
			
		||||
	{
 | 
			
		||||
		return valid_kcode(Key) ? Key == o.Key : Char == o.Char;
 | 
			
		||||
		return (Char > 0 && Char == o.Char) ||
 | 
			
		||||
			(valid_kcode(Key) && Key == o.Key);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	const char *sym() const;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user