on_each_tap_fn is called on tap down and tap up
This commit is contained in:
		
							parent
							
								
									d8a979b6d5
								
							
						
					
					
						commit
						d5daec2a58
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -70,6 +70,7 @@ bool process_tap_dance(uint16_t keycode, keyrecord_t *record) {
 | 
			
		|||
 | 
			
		||||
  switch(keycode) {
 | 
			
		||||
  case QK_TAP_DANCE ... QK_TAP_DANCE_MAX:
 | 
			
		||||
    process_tap_dance_action_on_each_tap (qk_tap_dance_state.keycode);
 | 
			
		||||
    if (qk_tap_dance_state.keycode && qk_tap_dance_state.keycode != keycode) {
 | 
			
		||||
      process_tap_dance_action_on_dance_finished (qk_tap_dance_state.keycode);
 | 
			
		||||
    } else {
 | 
			
		||||
| 
						 | 
				
			
			@ -80,7 +81,6 @@ bool process_tap_dance(uint16_t keycode, keyrecord_t *record) {
 | 
			
		|||
      qk_tap_dance_state.keycode = keycode;
 | 
			
		||||
      qk_tap_dance_state.timer = timer_read ();
 | 
			
		||||
      qk_tap_dance_state.count++;
 | 
			
		||||
      process_tap_dance_action_on_each_tap (qk_tap_dance_state.keycode);
 | 
			
		||||
    }
 | 
			
		||||
    break;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue