You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
486 B

  1. #include "combo.h"
  2. void process_combo_event(uint8_t combo_index, bool pressed){
  3. switch(combo_index) {
  4. case ZV_COPY:
  5. if (pressed) {
  6. tap_code16(LCTL(KC_C));
  7. }
  8. break;
  9. case XV_CUT:
  10. if (pressed) {
  11. tap_code16(LCTL(KC_X));
  12. }
  13. break;
  14. case CV_PASTE:
  15. if (pressed) {
  16. tap_code16(LCTL(KC_V));
  17. }
  18. break;
  19. case QP_SLEEP:
  20. if (pressed) {
  21. tap_code16(KC_SYSTEM_SLEEP);
  22. }
  23. break;
  24. }
  25. }