Remove legacy keycodes, part 6 (#18740)
* `KC_RSHIFT` -> `KC_RSFT` * `KC_RCTRL` -> `KC_RCTL` * `KC_LSHIFT` -> `KC_LSFT` * `KC_LCTRL` -> `KC_LCTL`
This commit is contained in:
		
							parent
							
								
									39c22f5cf5
								
							
						
					
					
						commit
						74223c34a9
					
				
					 553 changed files with 1139 additions and 1151 deletions
				
			
		| 
						 | 
				
			
			@ -94,7 +94,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
 | 
			
		|||
 | 
			
		||||
bool sh_key(keyrecord_t *record, uint8_t sk, uint8_t nk){
 | 
			
		||||
      if (record->event.pressed) {
 | 
			
		||||
        if (get_mods() & MOD_BIT(KC_LSHIFT) || get_mods() & MOD_BIT(KC_RSHIFT)){
 | 
			
		||||
        if (get_mods() & MOD_BIT(KC_LSFT) || get_mods() & MOD_BIT(KC_RSFT)){
 | 
			
		||||
           unregister_code(KC_LSFT);
 | 
			
		||||
           unregister_code(KC_RSFT);
 | 
			
		||||
           register_code(sk);
 | 
			
		||||
| 
						 | 
				
			
			@ -111,7 +111,7 @@ bool sh_key(keyrecord_t *record, uint8_t sk, uint8_t nk){
 | 
			
		|||
 | 
			
		||||
bool sh_key8(keyrecord_t *record, uint8_t sk, uint8_t nk){
 | 
			
		||||
      if (record->event.pressed) {
 | 
			
		||||
        if (get_mods() & MOD_BIT(KC_LSHIFT) || get_mods() & MOD_BIT(KC_RSHIFT)){
 | 
			
		||||
        if (get_mods() & MOD_BIT(KC_LSFT) || get_mods() & MOD_BIT(KC_RSFT)){
 | 
			
		||||
           register_code(sk);
 | 
			
		||||
        } else {
 | 
			
		||||
           register_code(nk);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue