Add delay to CSA macros using dead keys

With the BÉPO over CSA on Windows, the dead keys stop working after a
while, like in
http://superuser.com/questions/776558/suddenly-dead-keys-dont-work

I suspect this is triggered by too fast typing from macros.
daktil_thumb_popravljen
Didier Loiseau 2016-04-06 00:13:18 +02:00
parent 5bc69c5b0a
commit 81a889c97d
1 changed files with 2 additions and 2 deletions

View File

@ -453,7 +453,7 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
case M_SCLN: case M_SCLN:
return MACRO(D(SCLN), END); return MACRO(D(SCLN), END);
case M_GRV: case M_GRV:
return MACRO(DOWN(CSA_ALTGR), TYPE(CSA_DCRC), UP(CSA_ALTGR), T(SPACE), END); return MACRO(I(75), DOWN(CSA_ALTGR), TYPE(CSA_DCRC), UP(CSA_ALTGR), T(SPACE), END);
case M_NBSP: case M_NBSP:
// use weak mod such that pressing another key will not be affected // use weak mod such that pressing another key will not be affected
add_weak_mods(MOD_BIT(CSA_ALTGR)); add_weak_mods(MOD_BIT(CSA_ALTGR));
@ -477,7 +477,7 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
break; break;
case M_CRC: case M_CRC:
if (record->event.pressed) { if (record->event.pressed) {
return MACRO(TYPE(CSA_DCRC), T(SPACE), END); return MACRO(I(75), TYPE(CSA_DCRC), T(SPACE), END);
} }
break; break;
case M_DBL0: case M_DBL0: