diff --git a/run.bat b/run.bat index fc8ffbf..2f820d2 100644 --- a/run.bat +++ b/run.bat @@ -4,4 +4,6 @@ cd /d "%~dp0" call venv\Scripts\activate.bat echo Starting the application... -start "OopsWrongLang" /B pythonw src\main.pyw \ No newline at end of file +start "OopsWrongLang" /B pythonw src\main.pyw + +pause \ No newline at end of file diff --git a/src/main.pyw b/src/main.pyw index d56cd1c..6c6e0cb 100644 --- a/src/main.pyw +++ b/src/main.pyw @@ -139,6 +139,7 @@ def setup_tray(config): image = Image.open("assets/icon.png") menu = pystray.Menu( + pystray.MenuItem(f'Current Shortcut: {get_shortcut()}',lambda icon, item: None), pystray.MenuItem( 'Run on Startup', on_toggle_startup, @@ -161,7 +162,7 @@ def main(): # Register the keyboard shortcut shortcut = get_shortcut() - keyboard.add_hotkey(shortcut, on_shortcut, suppress=True) + keyboard.add_hotkey(shortcut, on_shortcut) print(f"Press {shortcut} to convert text to Persian.") # Keep the script running