Merge pull request #3 from Hamedrz004/feature/interactive-shortcut
adding a system keyboard language layout switch after the transformation
This commit is contained in:
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
.vscode/settings.json
|
||||
shortcut.txt
|
||||
src/__pycache__/config.cpython-313.pyc
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user