Fix multi-codepoint emoji.

This commit is contained in:
Anna Rose 2024-03-12 17:53:40 +00:00
parent e69aef23c7
commit ff54896635

View File

@ -408,13 +408,19 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
return false; return false;
case AB_RADI: case AB_RADI:
layer_off(_LAYER_QWERTY); layer_off(_LAYER_QWERTY);
if (record->event.pressed) SEND_STRING(SS_TAP(X_F14)"u2622"SS_TAP(X_ENT)); if (record->event.pressed) {
SEND_STRING(SS_TAP(X_F14)"u2622"SS_TAP(X_ENT));
SEND_STRING(SS_TAP(X_F14)"ufe0f"SS_TAP(X_ENT));
}
return false; return false;
case AB_PURP: case AB_PURP:
if (record->event.pressed) SEND_STRING(SS_TAP(X_F14)"u1f49c"SS_TAP(X_ENT)); if (record->event.pressed) SEND_STRING(SS_TAP(X_F14)"u1f49c"SS_TAP(X_ENT));
return false; return false;
case AB_RED: case AB_RED:
if (record->event.pressed) SEND_STRING(SS_TAP(X_F14)"u2764"SS_TAP(X_ENT)); if (record->event.pressed) {
SEND_STRING(SS_TAP(X_F14)"u2764"SS_TAP(X_ENT));
SEND_STRING(SS_TAP(X_F14)"ufe0f"SS_TAP(X_ENT));
}
return false; return false;
case AB_YELL: case AB_YELL:
if (record->event.pressed) SEND_STRING(SS_TAP(X_F14)"u1f49b"SS_TAP(X_ENT)); if (record->event.pressed) SEND_STRING(SS_TAP(X_F14)"u1f49b"SS_TAP(X_ENT));