Bug 488703

Summary: It is not possible to operate the Activities combobox with the keyboard.
Product: [Applications] systemsettings Reporter: JT Hundley <JThundley>
Component: kcm_kwinrulesAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: isma.af, nate, plasma-bugs
Priority: NOR Keywords: accessibility, usability
Version: 6.0.5   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In: 6.3.3
Sentry Crash Report:
Attachments: The Activities property in window rules.

Description JT Hundley 2024-06-19 00:19:47 UTC
Created attachment 170618 [details]
The Activities property in window rules.

SUMMARY
It is not possible to operate the Activities combobox with the keyboard. The mouse must be used.


STEPS TO REPRODUCE
1. Create a new window rule or edit an existing one.
2. Add the Activities property if it's not already present.
3. Use the keyboard or mouse to activate the combobox.
4. Use the keyboard to try to select or unselect which activities this property applies to.

OBSERVED RESULT
Pressing the spacebar or enter closes the combobox.

EXPECTED RESULT
I expected the highlighted activity's checkbox to be toggled.

SOFTWARE/OS VERSIONS
KDE Plasma Version:  6.0.5
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.1

ADDITIONAL INFORMATION
Comment 1 JT Hundley 2025-02-17 21:42:40 UTC
This issue is still present in:
Operating System: EndeavourOS 
KDE Plasma Version: 6.3.0
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.2
Comment 2 Bug Janitor Service 2025-02-24 00:31:31 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/7221
Comment 3 Ismael Asensio 2025-03-05 19:39:36 UTC
Git commit c56d5f5411971b5bf1dfb25fc1011a41651aa3fe by Ismael Asensio.
Committed on 05/03/2025 at 19:24.
Pushed by iasensio into branch 'master'.

kcms/rules: Fix keyboard usability for comboboxes with multiple selection

The ComboBox component handles keyboard events by keeping the focus
on the main item. Here, `OptionsComboBox` implements a custom logic
to select multiple options, where the standard handling fails.

To fix it, move the special logic for toggling an option to the main
component and activate it either by pressing `Space` or mouse clicking
on the delegate.
FIXED-IN: 6.3.3

M  +33   -21   src/kcms/rules/ui/OptionsComboBox.qml

https://invent.kde.org/plasma/kwin/-/commit/c56d5f5411971b5bf1dfb25fc1011a41651aa3fe
Comment 4 Ismael Asensio 2025-03-05 20:00:34 UTC
Git commit bd4e4f7312894eb5e52496f757fb189474f6f5f7 by Ismael Asensio.
Committed on 05/03/2025 at 19:40.
Pushed by iasensio into branch 'Plasma/6.3'.

kcms/rules: Fix keyboard usability for comboboxes with multiple selection

The ComboBox component handles keyboard events by keeping the focus
on the main item. Here, `OptionsComboBox` implements a custom logic
to select multiple options, where the standard handling fails.

To fix it, move the special logic for toggling an option to the main
component and activate it either by pressing `Space` or mouse clicking
on the delegate.
FIXED-IN: 6.3.3


(cherry picked from commit c56d5f5411971b5bf1dfb25fc1011a41651aa3fe)

Co-authored-by: Ismael Asensio <isma.af@gmail.com>

M  +33   -21   src/kcms/rules/ui/OptionsComboBox.qml

https://invent.kde.org/plasma/kwin/-/commit/bd4e4f7312894eb5e52496f757fb189474f6f5f7