File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
27
27
#include "action_util.h"
28
28
#include "action.h"
29
29
#include "hook.h"
30
+ #include "wait.h"
30
31
31
32
#ifdef DEBUG_ACTION
32
33
#include "debug.h"
@@ -365,6 +366,7 @@ void register_code(uint8_t code)
365
366
#endif
366
367
add_key (KC_CAPSLOCK );
367
368
send_keyboard_report ();
369
+ wait_ms (100 );
368
370
del_key (KC_CAPSLOCK );
369
371
send_keyboard_report ();
370
372
}
@@ -375,6 +377,7 @@ void register_code(uint8_t code)
375
377
#endif
376
378
add_key (KC_NUMLOCK );
377
379
send_keyboard_report ();
380
+ wait_ms (100 );
378
381
del_key (KC_NUMLOCK );
379
382
send_keyboard_report ();
380
383
}
@@ -385,6 +388,7 @@ void register_code(uint8_t code)
385
388
#endif
386
389
add_key (KC_SCROLLLOCK );
387
390
send_keyboard_report ();
391
+ wait_ms (100 );
388
392
del_key (KC_SCROLLLOCK );
389
393
send_keyboard_report ();
390
394
}
@@ -440,6 +444,7 @@ void unregister_code(uint8_t code)
440
444
#endif
441
445
add_key (KC_CAPSLOCK );
442
446
send_keyboard_report ();
447
+ wait_ms (100 );
443
448
del_key (KC_CAPSLOCK );
444
449
send_keyboard_report ();
445
450
}
@@ -450,6 +455,7 @@ void unregister_code(uint8_t code)
450
455
#endif
451
456
add_key (KC_NUMLOCK );
452
457
send_keyboard_report ();
458
+ wait_ms (100 );
453
459
del_key (KC_NUMLOCK );
454
460
send_keyboard_report ();
455
461
}
@@ -460,6 +466,7 @@ void unregister_code(uint8_t code)
460
466
#endif
461
467
add_key (KC_SCROLLLOCK );
462
468
send_keyboard_report ();
469
+ wait_ms (100 );
463
470
del_key (KC_SCROLLLOCK );
464
471
send_keyboard_report ();
465
472
}
You can’t perform that action at this time.
0 commit comments