Bug 503871

Summary: Krita 5.3 and 5.2.9 - ampersand character in tags not recognized in pop up palette.
Product: [Applications] krita Reporter: Wolfgang Baer <info>
Component: Resource ManagementAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: normal CC: halla
Priority: NOR    
Version First Reported In: nightly build (please specify the git hash!)   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: bug screenshot

Description Wolfgang Baer 2025-05-07 06:06:56 UTC
Created attachment 181014 [details]
bug screenshot

Krita 5.3 and 5.2.9 - ampersand character in tags not recognized in pop up palette.

Pop up palette tag selector does not recognize the ampersand character and subsequently does not filter the brush presets (the ampersand character is even not shown in the tag selector of the pop up palette).

The brush preset docker though does recognize the ampersand correctly and filters the brush presets accordingly.

Bundle to test with:
https://krita-artists.org/t/crayons-and-pencils-brush-bundle/106206

STEPS TO REPRODUCE
Import the linked brush bundle and try to filter its tag in the pop up palette

OBSERVED RESULT
no filtering

EXPECTED RESULT
filtering

ADDITIONAL INFORMATION
Confirmed for Krita 5.2.9 by user L.Sumireneko.M on krita-artists.org

"I tried it with v5.2.9 (git ac6cae8), I got the same result as you.
I also noticed something else.
It seems that when there is an & and a space between words, the display uses an underscore."

Link to thread:
https://krita-artists.org/t/krita-5-3-not-tested-in-5-2-9-ampersand-character-in-tags-not-recognized-in-pop-up-palette/122724
Comment 1 Halla Rempt 2025-05-07 07:18:57 UTC
I don't think we can do anything about that... The popup list is a QMenu and if you add a string with an ampersand to a menu then Qt decides to make that into an accelerator -- because that's how menu accelerator shortcuts are created. And there really isn't any way around this that I know of.