Bug 483670 - Using the shortcut to change keyboard layout loses focus of the current window
Summary: Using the shortcut to change keyboard layout loses focus of the current window
Status: REPORTED
Alias: None
Product: kde
Classification: I don't know
Component: general (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2024-03-15 13:54 UTC by Guillaume
Modified: 2024-04-02 09:45 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Guillaume 2024-03-15 13:54:12 UTC
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
Comment 1 olafur.palsson2@gmail.com 2024-04-02 09:37:18 UTC
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.
Comment 2 olafur.palsson2@gmail.com 2024-04-02 09:45:58 UTC
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