Bug 449474 - Enter does not do what is expected to do
Summary: Enter does not do what is expected to do
Status: RESOLVED UPSTREAM
Alias: None
Product: plasmashell
Classification: Plasma
Component: Application Launcher (Kickoff) widget (show other bugs)
Version: 5.23.90
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: David Edmundson
URL: https://codereview.qt-project.org/c/q...
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-01 19:54 UTC by Iyán M. V.
Modified: 2022-02-01 23:14 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Iyán M. V. 2022-02-01 19:54:38 UTC
SUMMARY
When using the menu only with keyboard, some actions have to be done with space instead of enter. The most obvious example is the power and session buttons, which can be selected pressing space, but not enter.

STEPS TO REPRODUCE
1. Use meta key to open the menu
2. Use tab key to navigate through the menu (Applications -> Places -> Power and session buttons) to the power buttons
3. Press enter when selecting reboot, for example.

OBSERVED RESULT
After pressing enter, the selection is moved to the favorite application list/grid instead of imitating the same action as left click. Pressing space key does work.

EXPECTED RESULT
Pressing enter should be equal to left click. I would either replace space with enter, or make both do the same.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.23.90
KDE Frameworks Version: 5.90.0
Qt Version: 5.15.2
Kernel Version: 5.16.4-arch1-1 (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-4790K CPU @ 4.00GHz
Memory: 15.5 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 1070/PCIe/SSE2
Comment 1 Nate Graham 2022-02-01 23:14:21 UTC
It's a general problem in Qt; Spacebar is used to trigger the highlighted UI element; while Enter/Return selects items in item views (list views, grid views, etc)

In practice this is kind of an arbitrary distinction and people get confused about it. I agree that it would be better if enter/return also triggered the currently-highlighted UI element.

Noah has submitted a thing upstream to fix this generically for Qt: https://codereview.qt-project.org/c/qt/qtdeclarative/+/390702

So I'm marking this as an upstream issue for now. If that doesn't get merged, then we can look into working around it ourselves in KDE.