From 45b0f8123a52f5c73a5860d616f4ceba2766ca6a Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Sat, 13 Nov 2021 20:59:01 +0100 Subject: [PATCH] Increase delay to inject HID on Ctrl+v 2 milliseconds turn out to be insufficient sometimes. It seems that 5 milliseconds is enough (and still not noticeable). --- app/src/hid_keyboard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/hid_keyboard.c b/app/src/hid_keyboard.c index c6fba21c..3ac1a441 100644 --- a/app/src/hid_keyboard.c +++ b/app/src/hid_keyboard.c @@ -307,7 +307,7 @@ sc_key_processor_process_key(struct sc_key_processor *kp, // requested. Wait a bit so that the clipboard is set before // injecting Ctrl+v via HID, otherwise it would paste the old // clipboard content. - hid_event.delay = SC_TICK_FROM_MS(2); + hid_event.delay = SC_TICK_FROM_MS(5); } if (!sc_aoa_push_hid_event(kb->aoa, &hid_event)) {