Get rid of USB_LED_NUM_LOCK (#21424)
				
					
				
			This commit is contained in:
		
							parent
							
								
									7ff80a57cb
								
							
						
					
					
						commit
						9ab16e62f7
					
				
					 25 changed files with 91 additions and 133 deletions
				
			
		| 
						 | 
				
			
			@ -389,7 +389,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t* record)
 | 
			
		|||
			/* KC_KP_1, KC_KP_2, ..., KC_KP_0, KC_KP_DOT */
 | 
			
		||||
			(keycode >= KC_KP_1 && keycode <= KC_KP_DOT);
 | 
			
		||||
 | 
			
		||||
		if(numpadKeyPressed && !(host_keyboard_leds() & (1 << USB_LED_NUM_LOCK)))
 | 
			
		||||
		if(numpadKeyPressed && !host_keyboard_led_state().num_lock)
 | 
			
		||||
		{
 | 
			
		||||
			add_key(KC_NUM_LOCK);
 | 
			
		||||
			send_keyboard_report();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue