mirror of
				https://github.com/mfulz/qmk_firmware.git
				synced 2025-10-31 13:22:31 +01:00 
			
		
		
		
	add option to let ctrl override shift/gui for the GRAVE_ESC.
This enables the ctrl+shift+esc shortcut to task manager on windows.
This commit is contained in:
		
							parent
							
								
									e966854a65
								
							
						
					
					
						commit
						7b8eed9f29
					
				| @ -20,5 +20,6 @@ | ||||
| #include "../../config.h" | ||||
| 
 | ||||
| // place overrides here
 | ||||
| #define GRAVE_ESC_CTRL_OVERRIDE | ||||
| 
 | ||||
| #endif | ||||
|  | ||||
| @ -476,6 +476,11 @@ bool process_record_quantum(keyrecord_t *record) { | ||||
|       uint8_t shifted = get_mods() & ((MOD_BIT(KC_LSHIFT)|MOD_BIT(KC_RSHIFT) | ||||
|                                       |MOD_BIT(KC_LGUI)|MOD_BIT(KC_RGUI))); | ||||
|        | ||||
| #ifdef GRAVE_ESC_CTRL_OVERRIDE | ||||
|       if (get_mods() & (MOD_BIT(KC_LCTL) | MOD_BIT(KC_RCTL))) | ||||
|         shifted = 0; | ||||
| #endif | ||||
| 
 | ||||
|       method(shifted ? KC_GRAVE : KC_ESCAPE); | ||||
|       send_keyboard_report();  | ||||
|     } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Balz Guenat
						Balz Guenat