Adds a way to separate tab from AUTO_SHIFT_SPECIAL. (#20996)
This commit is contained in:
		
							parent
							
								
									e43080788e
								
							
						
					
					
						commit
						e9ff66d8ad
					
				
					 3 changed files with 58 additions and 7 deletions
				
			
		| 
						 | 
				
			
			@ -75,7 +75,15 @@ __attribute__((weak)) bool get_auto_shifted_key(uint16_t keycode, keyrecord_t *r
 | 
			
		|||
        case AUTO_SHIFT_NUMERIC:
 | 
			
		||||
#    endif
 | 
			
		||||
#    ifndef NO_AUTO_SHIFT_SPECIAL
 | 
			
		||||
        case AUTO_SHIFT_SPECIAL:
 | 
			
		||||
#        ifndef NO_AUTO_SHIFT_TAB
 | 
			
		||||
        case KC_TAB:
 | 
			
		||||
#        endif
 | 
			
		||||
#        ifndef NO_AUTO_SHIFT_SYMBOLS
 | 
			
		||||
        case AUTO_SHIFT_SYMBOLS:
 | 
			
		||||
#        endif
 | 
			
		||||
#    endif
 | 
			
		||||
#    ifdef AUTO_SHIFT_ENTER
 | 
			
		||||
        case KC_ENT:
 | 
			
		||||
#    endif
 | 
			
		||||
            return true;
 | 
			
		||||
    }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -28,10 +28,14 @@
 | 
			
		|||
// clang-format off
 | 
			
		||||
#define AUTO_SHIFT_ALPHA KC_A ... KC_Z
 | 
			
		||||
#define AUTO_SHIFT_NUMERIC KC_1 ... KC_0
 | 
			
		||||
#define AUTO_SHIFT_SYMBOLS          \
 | 
			
		||||
             KC_MINUS ... KC_SLASH: \
 | 
			
		||||
        case KC_NONUS_BACKSLASH
 | 
			
		||||
 | 
			
		||||
// Kept to avoid breaking existing keymaps.
 | 
			
		||||
#define AUTO_SHIFT_SPECIAL          \
 | 
			
		||||
             KC_TAB:                \
 | 
			
		||||
        case KC_MINUS ... KC_SLASH: \
 | 
			
		||||
        case KC_NONUS_BACKSLASH
 | 
			
		||||
        case AUTO_SHIFT_SYMBOLS
 | 
			
		||||
// clang-format on
 | 
			
		||||
 | 
			
		||||
bool process_auto_shift(uint16_t keycode, keyrecord_t *record);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue