SUMMARY When typing in an input and then pressing the shortcut to switch keyboard language, the window will lose focus. STEPS TO REPRODUCE 1. Setup two keyboard layout with a shortcut to switch between layout 2. Start typing in an input 3. Press the shortcut to switch between layout OBSERVED RESULT The window and input will lose focus, and you have to click it again to resume typing EXPECTED RESULT The window and input stays focused, and you can keep typing with the new keyboard layout SOFTWARE/OS VERSIONS Linux/KDE Plasma: 6.7.9-arch1-1 KDE Plasma Version: 6.0.2 KDE Frameworks Version: 6.0.0 Qt Version: 6.6.2
I also experience this bug since KDE6. So far I've tried "Both Ctrl", "Shift+Alt" and "Alt" and all seem to reproduce the bug. In the buggy state I get this behavior: Pressing ESC restores focus to the window. Pressing Enter or Space opens Application Launcher (Start menu). So it seems that it's switching focus to the Application Launcher as a side effect.
Some additional context: Removing "Keyboard layout applet and System Tray item" from the System Tray stops the bug from occurring. Having the Component on the desktop also doesn't cause the bug. Here are updated steps to reproduce: STEPS TO REPRODUCE 1. Setup two keyboard layout with a shortcut to switch between layout 2. Add Keyboard layout system tray item 3. Start typing in an input 4. Press the shortcut to switch between layout