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:
1 file changed
+2
@@ -12,6 +12,7 @@ for log in [
|
|||||||
]:
|
]:
|
||||||
logger.disable(log)
|
logger.disable(log)
|
||||||
|
|
||||||
|
from services.keyboard_layout import KeyboardLayout
|
||||||
from shared.data import APP_NAME, load_config
|
from shared.data import APP_NAME, load_config
|
||||||
from utils.functions import set_process_name
|
from utils.functions import set_process_name
|
||||||
from window.desktop.widget import Deskwidgets
|
from window.desktop.widget import Deskwidgets
|
||||||
@@ -112,6 +113,7 @@ def main():
|
|||||||
__main__.dock = dock
|
__main__.dock = dock
|
||||||
__main__.osd = osd
|
__main__.osd = osd
|
||||||
__main__.screencapture = screencapture
|
__main__.screencapture = screencapture
|
||||||
|
__main__.switch_keyboard_layout = KeyboardLayout.switch_keyboard_layout
|
||||||
|
|
||||||
app.run()
|
app.run()
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user