feat: add keyboard layout switching capability

Expose KeyboardLayout.switch_keyboard_layout as a public method and integrate it into the main application to enable dynamic keyboard layout changes at runtime.
This commit is contained in:
sankalp committed 2026-07-09 15:32:10 +05:45
1 parent c122cfd32f
commit 6152314c9c
1 file changed
+2
+2
View File
@@ -12,6 +12,7 @@ for log in [
]:
logger.disable(log)
from services.keyboard_layout import KeyboardLayout
from shared.data import APP_NAME, load_config
from utils.functions import set_process_name
from window.desktop.widget import Deskwidgets
@@ -112,6 +113,7 @@ def main():
__main__.dock = dock
__main__.osd = osd
__main__.screencapture = screencapture
__main__.switch_keyboard_layout = KeyboardLayout.switch_keyboard_layout
app.run()