Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.
JavaScript aianthropiccross-platformgeminigroqlinuxmacosnvidiaopen-sourceopenaiparakeetspeech-to-texttranscribewhisperwindows
fix(linux): settle modifiers before key press in portal paste (#1257)
Alcahest Malus Dienheimbaab450aea66
diff --git a/resources/linux-fast-paste.c b/resources/linux-fast-paste.cindex 249a10fd1..6106fec62 100644--- a/resources/linux-fast-paste.c+++ b/resources/linux-fast-paste.c@@ -91,6 +91,8 @@ static void portal_send_paste(PortalData *app){if (app->mode == PASTE_MODE_SHIFT_INSERT) {portal_emit_key(app, PORTAL_KEY_LEFTSHIFT, 1, "Shift press");+ /* let the compositor register the modifier before the key arrives */+ usleep(20000);portal_emit_key(app, PORTAL_KEY_INSERT, 1, "Insert press");usleep(20000);portal_emit_key(app, PORTAL_KEY_INSERT, 0, "Insert release");@@ -101,6 +103,7 @@ static void portal_send_paste(PortalData *app)portal_emit_key(app, PORTAL_KEY_LEFTCTRL, 1, "Ctrl press");if (use_shift)portal_emit_key(app, PORTAL_KEY_LEFTSHIFT, 1, "Shift press");+ usleep(20000);portal_emit_key(app, PORTAL_KEY_V, 1, "V press");usleep(20000);portal_emit_key(app, PORTAL_KEY_V, 0, "V release");