Bug 513260 - Full representation shows an "A" even when Caps Lock is off
Summary: Full representation shows an "A" even when Caps Lock is off
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Keyboard Indicator widget (other bugs)
Version First Reported In: master
Platform: Other Linux
: LO minor
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: junior-jobs
Depends on:
Blocks:
 
Reported: 2025-12-12 18:18 UTC by Jonathan Marten
Modified: 2025-12-12 21:47 UTC (History)
3 users (show)

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


Attachments
Screen shot of expanded applet (158.31 KB, image/png)
2025-12-12 18:18 UTC, Jonathan Marten
Details

Note You need to log in before you can comment on or make changes to this bug.
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).