mirror of
				https://github.com/grymoire/i2c_puppet-Linux.git
				synced 2025-10-30 18:05:34 +01:00 
			
		
		
		
	| @@ -114,8 +114,9 @@ static void transition_to(struct list_item * const p_item, const enum key_state | ||||
| 				if (reg_is_bit_set(REG_ID_CFG, CFG_USE_MODS)) { | ||||
| 					const bool shift = (self.mods[KEY_MOD_ID_SHL] || self.mods[KEY_MOD_ID_SHR]) | self.capslock; | ||||
| 					const bool alt = self.mods[KEY_MOD_ID_ALT] | self.numlock; | ||||
| 					const bool is_button = (key <= KEY_BTN_RIGHT1) || ((key >= KEY_BTN_LEFT2) && (key <= KEY_BTN_RIGHT2)); | ||||
|  | ||||
| 					if (alt) { | ||||
| 					if (alt && !is_button) { | ||||
| 						key = p_entry->alt; | ||||
| 					} else if (!shift && (key >= 'A' && key <= 'Z')) { | ||||
| 						key = (key + ' '); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user