[Core] Flow Tap tap-hold option to disable HRMs during fast typing (#25125)
aka Global Quick Tap, Require Prior Idle
This commit is contained in:
		
							parent
							
								
									a7bf8e64a5
								
							
						
					
					
						commit
						8d8dcb089e
					
				
					 11 changed files with 648 additions and 36 deletions
				
			
		| 
						 | 
				
			
			@ -1183,6 +1183,23 @@ bool is_tap_action(action_t action) {
 | 
			
		|||
    return false;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
uint16_t get_tap_keycode(uint16_t keycode) {
 | 
			
		||||
    switch (keycode) {
 | 
			
		||||
        case QK_MOD_TAP ... QK_MOD_TAP_MAX:
 | 
			
		||||
            return QK_MOD_TAP_GET_TAP_KEYCODE(keycode);
 | 
			
		||||
        case QK_LAYER_TAP ... QK_LAYER_TAP_MAX:
 | 
			
		||||
            return QK_LAYER_TAP_GET_TAP_KEYCODE(keycode);
 | 
			
		||||
        case QK_SWAP_HANDS ... QK_SWAP_HANDS_MAX:
 | 
			
		||||
            // IS_SWAP_HANDS_KEYCODE() tests for the special action keycodes
 | 
			
		||||
            // like SH_TOGG, SH_TT, ..., which overlap the SH_T(kc) range.
 | 
			
		||||
            if (!IS_SWAP_HANDS_KEYCODE(keycode)) {
 | 
			
		||||
                return QK_SWAP_HANDS_GET_TAP_KEYCODE(keycode);
 | 
			
		||||
            }
 | 
			
		||||
            break;
 | 
			
		||||
    }
 | 
			
		||||
    return keycode;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/** \brief Debug print (FIXME: Needs better description)
 | 
			
		||||
 *
 | 
			
		||||
 * FIXME: Needs documentation.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue