Bug 503871 - Krita 5.3 and 5.2.9 - ampersand character in tags not recognized in pop up palette.
Summary: Krita 5.3 and 5.2.9 - ampersand character in tags not recognized in pop up pa...
Status: RESOLVED UPSTREAM
Alias: None
Product: krita
Classification: Applications
Component: Resource Management (other bugs)
Version First Reported In: nightly build (please specify the git hash!)
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-07 06:06 UTC by Wolfgang Baer
Modified: 2025-05-07 07:18 UTC (History)
1 user (show)

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


Attachments
bug screenshot (202.33 KB, image/png)
2025-05-07 06:06 UTC, Wolfgang Baer
Details

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