Bug 511258

Summary: Moving focus away from the modal logout screen breaks keyboard accessibility (unrecoverably with keyboard inputs)
Product: [Plasma] plasmashell Reporter: cwo <cwo.kde>
Component: Theme - BreezeAssignee: Plasma Bugs List <plasma-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: kde, nate, ritchie, visual-bugs-null
Priority: HI Keywords: accessibility
Version First Reported In: 6.5.80   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description cwo 2025-10-28 10:15:47 UTC
SUMMARY

The logout screen (e.g. through Ctrl+Alt+Delete or Kickoff > Logout) takes over the full screen and is always on top. The user, however can still Alt-tab to another existing window, or launch an app with a keyboard shortcut. When another window receives focus, the logout screen is still on top (covering the window that actually has focus), but now cannot be operated with the keyboard anymore (as all input now goes to the newly focused window). The logout screen itself is not focusable with Alt-tab, and even trying to re-open it with Ctrl+Alt+Delete does not work (I presume because it's already open). This makes it impossible to exit the screen through keyboard inputs, the user needs to use the mouse to click the screen to give it focus. 

STEPS TO REPRODUCE
1. Open the logout screen with Ctrl+Alt+Delete
2. Press Alt-Tab to switch to another open window, or launch a new window (e.g. Ctrl+Alt+T)

OBSERVED RESULT

The logout screen (and the currently button) lose focus, but are still on top covering all other windows. There does not seem to be a way to make it regain focus or close it using the keyboard; users without a mouse are locked on this screen. The window that is being switched to / opened receives all keyboard inputs, possibly altering data with no visual feedback.

EXPECTED RESULT

For this not to happen.

I could see some different ways this could work, but none of them seem optimal.

a) close the window if it doesn't have focus - would need to make sure that it doesn't break if the logout screen is prevented from gaining focus somehow, but would probably feel best for the alt-tab case.
b) prevent other windows from gaining focus while the logout screen is open - might be the most robust way?
c) prevent keyboard shortcuts while the screen is open - might not catch everything?

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 42
KDE Plasma Version: 6.5.80
KDE Frameworks Version: 6.20.0
Qt Version: 6.9.2
Kernel Version: 6.17.4-200.fc42.x86_64 (64-bit)
Graphics Platform: Wayland

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2025-10-29 21:10:59 UTC
Can reproduce. This is very bad if you're only using keyboard navigation. If you have a pointing device, it's easy to click the Cancel button, at least.