| Summary: | Mnemonics in chinese (and possibly others) shouldn't take symbols | ||
|---|---|---|---|
| Product: | [Frameworks and Libraries] frameworks-kirigami | Reporter: | Han Han <haannn> |
| Component: | general | Assignee: | Marco Martin <notmart> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | aleixpol, hein |
| Priority: | NOR | ||
| Version First Reported In: | Master | ||
| Target Milestone: | Not decided | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/frameworks/kirigami/commit/6dda5f1d3782b2c8aeb385fdade6e9487c29f571 | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
|
Description
Han Han
2020-04-22 04:34:33 UTC
I'm not sure what's the right way to do this, will need some more investigation.
This is coming from Discover's ActionListItem.qml
Kirigami.MnemonicData.enabled: item.enabled && item.visible
Kirigami.MnemonicData.controlType: Kirigami.MnemonicData.MenuItem
Kirigami.MnemonicData.label: action.text
label: Kirigami.MnemonicData.richTextLabel
readonly property var tooltip: QQC2.ToolTip {
text: action.shortcut ? action.shortcut : p0.nativeText
}
Chinese UI conventionally renders menu items as "Label(Latin mnemonic)". This is how it was done in xmlgui. https://phabricator.kde.org/D7964 A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kirigami/-/merge_requests/79 Git commit 6dda5f1d3782b2c8aeb385fdade6e9487c29f571 by Marco Martin. Committed on 20/08/2020 at 12:26. Pushed by mart into branch 'master'. new logic to remove acceleration marks Logic to remove acceleration marks borrowed from KWidgetAddons https://phabricator.kde.org/D7964 This should handle as wel CJK text. M +89 -3 src/mnemonicattached.cpp https://invent.kde.org/frameworks/kirigami/commit/6dda5f1d3782b2c8aeb385fdade6e9487c29f571 |