From 923e015b697a556ae53cd691980679a1f6284d49 Mon Sep 17 00:00:00 2001 From: Hamed Date: Sun, 10 Aug 2025 15:21:01 +0330 Subject: [PATCH] adding a system keyboard language layout switch after the transformation --- .gitignore | 3 +++ src/main.pyw | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7b1819b --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +.vscode/settings.json +shortcut.txt +src/__pycache__/config.cpython-313.pyc diff --git a/src/main.pyw b/src/main.pyw index 9304ea4..ed43ea8 100644 --- a/src/main.pyw +++ b/src/main.pyw @@ -120,7 +120,8 @@ def on_shortcut(): pyperclip.copy(converted_text) print(f"Converted text: {converted_text}") keyboard.press_and_release('ctrl+v') # Paste the converted text - + time.sleep(0.2) + keyboard.press_and_release('windows+space') def quit_app(icon, item): icon.stop() import os