mirror of
				https://github.com/mfulz/qmk_firmware.git
				synced 2025-10-31 05:12:33 +01:00 
			
		
		
		
	[Docs] Update one_shot_keys.md (#12291)
This commit is contained in:
		
							parent
							
								
									d0a3506d0f
								
							
						
					
					
						commit
						c00a9937f2
					
				| @ -23,7 +23,7 @@ You can control the behavior of one shot keys by defining these in `config.h`: | |||||||
| 
 | 
 | ||||||
| Sometimes, you want to activate a one-shot key as part of a macro or tap dance routine.   | Sometimes, you want to activate a one-shot key as part of a macro or tap dance routine.   | ||||||
| 
 | 
 | ||||||
| For one shot layers, you need to call `set_oneshot_layer(LAYER, ONESHOT_START)` on key down, and `clear_oneshot_layer_state(ONESHOT_OTHER_KEY_PRESSED)` on key up. If you want to cancel the oneshot, call `reset_oneshot_layer()`. | For one shot layers, you need to call `set_oneshot_layer(LAYER, ONESHOT_START)` on key down, and `clear_oneshot_layer_state(ONESHOT_PRESSED)` on key up. If you want to cancel the oneshot, call `reset_oneshot_layer()`. | ||||||
| 
 | 
 | ||||||
| For one shot mods, you need to call `set_oneshot_mods(MOD_BIT(KC_*))` to set it, or `clear_oneshot_mods()` to cancel it. | For one shot mods, you need to call `set_oneshot_mods(MOD_BIT(KC_*))` to set it, or `clear_oneshot_mods()` to cancel it. | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Thomas Museus Dabay
						Thomas Museus Dabay