From 18d11e77e1c94481a03cfa9faae7991e9fcfba7c Mon Sep 17 00:00:00 2001 From: Neil Stephens Date: Mon, 8 Sep 2025 16:29:15 +1000 Subject: [PATCH] Use opt_key_hold_ms for shift keypress when typing upper case Capitisation of output was incorrect in some programs because there was no delay between the shift keypress and the letter being typed. Hold time between shift and letter seems like the natural emulation of real typing action, and solves the problem. --- Client/tool_type.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Client/tool_type.c b/Client/tool_type.c index 43992b6..29d696c 100644 --- a/Client/tool_type.c +++ b/Client/tool_type.c @@ -118,6 +118,7 @@ static void type_char(char c, bool delay) { if (kdef & FLAG_UPPERCASE) { uinput_emit(EV_KEY, KEY_LEFTSHIFT, 1, 1); + usleep(opt_key_hold_ms * 1000); } uinput_emit(EV_KEY, kc, 1, 1);