SUMMARY shortcut should use English character but Chinese STEPS TO REPRODUCE 1. open discover 2. hover over the About 3. Alt + 关 appeared OBSERVED RESULT Alt + 关 appeared EXPECTED RESULT Alt+a SOFTWARE/OS VERSIONS Linux/KDE Plasma: archlinux (available in About System) KDE Plasma Version: 5.18.4 KDE Frameworks Version: 5.69.0 Qt Version: 5.14.2 ADDITIONAL INFORMATION
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
please test 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