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).
This commit is contained in:
parent
c1a34881d7
commit
45b0f8123a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
// requested. Wait a bit so that the clipboard is set before
|
||||||
// injecting Ctrl+v via HID, otherwise it would paste the old
|
// injecting Ctrl+v via HID, otherwise it would paste the old
|
||||||
// clipboard content.
|
// 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)) {
|
if (!sc_aoa_push_hid_event(kb->aoa, &hid_event)) {
|
||||||
|
|
Loading…
Reference in a new issue