RShift + LShift = Capslock
This commit is contained in:
		| @@ -744,6 +744,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||||||
|  |  | ||||||
|   switch (keycode) { |   switch (keycode) { | ||||||
|     // handle greek layer shift |     // handle greek layer shift | ||||||
|  |     // handle both shift = capslock | ||||||
|     case KC_LSFT: |     case KC_LSFT: | ||||||
|     case KC_RSFT: |     case KC_RSFT: | ||||||
|       ; |       ; | ||||||
| @@ -758,6 +759,13 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||||||
|             layer_off(_GREEKU); |             layer_off(_GREEKU); | ||||||
|           } |           } | ||||||
|         } |         } | ||||||
|  |       } else { | ||||||
|  |         if (record->event.pressed) { | ||||||
|  |           if (lshift ^ rshift) { // if only one shift was pressed | ||||||
|  |             register_code(KC_CAPS); | ||||||
|  |             unregister_code(KC_CAPS); | ||||||
|  |           } | ||||||
|  |         } | ||||||
|       } |       } | ||||||
|       return true; |       return true; | ||||||
|       break; |       break; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user