Bug 450376

Summary: Enter key in application launcher doesn't work for Sleep / Restart / Shutdown / Leave
Product: [Plasma] plasmashell Reporter: ilya
Component: Application Launcher (Kickoff) widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: minor CC: mikel5764, nate, noahadvs, plasma-bugs-null
Priority: NOR    
Version First Reported In: 5.24.0   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
URL: https://codereview.qt-project.org/c/qt/qtbase/+/394849/6
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description ilya 2022-02-16 11:59:43 UTC
SUMMARY
***
When using application launcher with keyboard, it is impossible to activate Sleep, Restart, Shutdown, or Leave items with Enter key. One has to press "Space" key to activate them; pressing "Enter" key moves focus to the main area with list of the application. This is inconsistent with other items in launcher menu, which both can be activated with Enter and Space keys.
***


STEPS TO REPRODUCE
1. Press Alt-F1 or other shortcut to open application launcher or open it with a mouse
2. Press "Tab" several times to highlight "Sleep", "Restart", "Shutdown" or "Leave" item
3. Press "Enter"

OBSERVED RESULT
The selected item loses focus, and list of the programs (favorites or applications) is selected instead.

EXPECTED RESULT
The selected item is activated (Sleep, Shutdown, or Restart  action is carried out, or Leave drop-down menu appears)

SOFTWARE/OS VERSIONS
Linux/KDE Plasma
KDE Plasma Version: 5.24.0
KDE Frameworks Version: 5.90.0
Qt Version: 5.15.2
Comment 1 Nate Graham 2022-02-16 18:34:46 UTC
This will actually be fixed by Noah's recent Qt work: https://codereview.qt-project.org/c/qt/qtbase/+/394849/6

If we're lucky, it'll get backported to our Qt5 patch collection; otherwise it will make an appearance in Qt6.