Bug 513260

Summary: Full representation shows an "A" even when Caps Lock is off
Product: [Plasma] plasmashell Reporter: Jonathan Marten <jjm>
Component: Keyboard Indicator widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: CONFIRMED ---    
Severity: minor CC: aleixpol, cwo.kde, nate
Priority: LO Keywords: junior-jobs
Version First Reported In: master   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Screen shot of expanded applet

Description Jonathan Marten 2025-12-12 18:18:03 UTC
Created attachment 187553 [details]
Screen shot of expanded applet

SUMMARY

The expanded state of the applet - which is not particularly useful, but it can be shown by clicking on the system tray icon - shows an icon with an "A" even when Caps Lock is off.  The system tray icon shows the same, but the icon is dimmed so the effect is not so obvious.

STEPS TO REPRODUCE
1. Turn off both Caps Lock and Num Lock.
2.  Click on the indicator applet to expand it.
3.  Toggle Caps Lock.

OBSERVED RESULT

As shown in attached screen shot - an "A" is shown even when Caps Lock is off.  Therefore the on/off states of Caps Lock cannot be distinguished by the icon.

EXPECTED RESULT

When no lock keys are in effect, the indicator should be shown with an empty frame (no "A").

SOFTWARE/OS VERSIONS

Operating System: Gentoo 2.17
KDE Plasma Version: 6.5.80
KDE Frameworks Version: 6.21.0
Qt Version: 6.9.2
Kernel Version: 6.6.47-gentoo-x86_64 (64-bit)
Graphics Platform: X11
Processors: 3 × AMD Phenom(tm) II X3 705e Processor
Memory: 16 GiB of RAM (15.6 GiB usable)
Graphics Processor: NVIDIA GeForce GT 730

ADDITIONAL INFORMATION

Looking at the Plasmoid.icon logic in plasma-addons/applets/keyboardindicator/main.qml, the icon "input-caps-on" (which shows the "A") seems to be chosen even where neither modifier key is active.  The icon to use would logically be named "input-combo-off", but this icon is not present in Breeze.
Comment 1 Nate Graham 2025-12-12 21:07:48 UTC
We actually don't have an icon for that. We'd need a new one.

I worry that if we create one, we'll get new bug reports saying "mysterious symbol appears when caps lock is off"
Comment 2 cwo 2025-12-12 21:47:48 UTC
We could just not show an icon in that case.

Though the capital A is also used for other lock states except NumLock (namely modifier lock with sticky keys enabled). So it's not really a CapsLock only indicator (even though the icon name suggests so).