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
I can't replicate this on master with the steps outlined. I tried both the old X11-style shortcuts for cycling through layouts (set to both shift keys together and as one comment suggested both control keys together), the new method for cycling through layouts (set to the default Meta+Alt+K), and jumping directly to an existing layout with a custom shortcut (set to Meta+Crtl+D). I tried it with the System Tray icon active, and with an extra panel widget added to the panel (in case you meant that, as the system tray icon typically doesn't need to be enabled manually). In all cases, the input field I tested (this one in Firefox) kept focus. Can you confirm whether this is still an issue for you, and if it is, give some more information about your system and configuration?
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME. For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging. Thank you for helping us make KDE software even better for everyone!
I added back the keyboard layout widget to the panel and I'm unable to reproduce it on KDE Neon with Plasma 6.1.5 (frameworks 6.6, Qt 6.7.2, Wayland) It looks like this has already been fixed.
🐛🧹 This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.