Bug 501101 - [bug/feature] "Switch to Last-Used Keyboard Layout" doesn't work on new windows before actual layout switch
Summary: [bug/feature] "Switch to Last-Used Keyboard Layout" doesn't work on new windo...
Status: REPORTED
Alias: None
Product: frameworks-kglobalaccel
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: 6.11.0
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-05 13:54 UTC by Yanis Mukhametshin
Modified: 2025-03-05 13:54 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yanis Mukhametshin 2025-03-05 13:54:20 UTC
SUMMARY
I have 3 keyboard layouts: US, RU, UA, and mostly use US and RU, and rarely switching to UA
I want to use "Switch to Last-Used Keyboard Layout" accell to switch between US and RU, but I cant:
On newly created windows, where actual layout switching hasn't been yet, there is no "last" layout to switch to, and the accell just doesn't work.

I propose to set the "last" layout to the second layout in global list by default, so in case of my setup, default layout is US, and the "last" layout will be set to RU by default.

STEPS TO REPRODUCE
1. Setup 2+ keyboard layouts
2. Setup "Switch to Last-Used Keyboard Layout" accell
3. Open new application window with text input
4. Type something to confirm default layout
5. Use the "Switch to Last-Used Keyboard Layout" accell
6. Type something again

OBSERVED RESULT
Keyboard layout hasn't changed and still default

EXPECTED RESULT
Keyboard layout has changed

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 41
KDE Plasma Version: 6.3.2
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.2
Kernel Version: 6.13.5-200.fc41.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 9 5900HX with Radeon Graphics
Memory: 62.2 GB of RAM
Graphics Processor 1: AMD Radeon RX 6800M
Graphics Processor 2: AMD Radeon Graphics