Bug 497998

Summary: "Send pen button" shows more buttons than available
Product: [Applications] systemsettings Reporter: Nicolas Fella <nicolas.fella>
Component: kcm_tabletAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal CC: aleixpol, josh
Priority: NOR    
Version First Reported In: master   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Nicolas Fella 2024-12-28 20:21:27 UTC
STEPS TO REPRODUCE
1.  Connect graphics tablet with pen with e.g. two buttons
2. Open tablet KCM, go to Pen tab
3. Click on "Pen Button 1"
4. Click "Send pen button"

OBSERVED RESULT
A combobox with three entries button 1-3

EXPECTED RESULT
Only two entries since there's only two buttons

SOFTWARE/OS VERSIONS
KDE Plasma Version: master
KDE Frameworks Version: master
Qt Version: 6.9

ADDITIONAL INFORMATION
I guess technically sending button 3 even if there's only two works, so maybe this is a feature?
Comment 1 Joshua Goins 2024-12-29 13:20:39 UTC
Yes this is technically a feature, so people with only one pen button can trick an application into sending one they don't have.