summaryrefslogtreecommitdiff
path: root/vcl/osx
diff options
context:
space:
mode:
authorxuenhua <xuenhua2008@sina.com>2022-05-07 16:53:54 +0800
committerCaolán McNamara <caolanm@redhat.com>2022-05-08 10:57:11 +0200
commite92536bac2545d7f2722fc2529d8c7a8ff7c85d8 (patch)
tree5ffb65170aca77f67e7d578d7a4618a2e9275c3c /vcl/osx
parented977f0b6c849739d3c843c8425442265e2eb7ca (diff)
Delete CJK-style mnemonics on macOS
Delete CJK-style mnemonics for the dropdown menu of the 'New button' and lower menu of 'File > New' on macOS Change-Id: Idd0ab671cd75151095c92b37e5b6b5e81ddae7e1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133973 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/osx')
-rw-r--r--vcl/osx/salmenu.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/osx/salmenu.cxx b/vcl/osx/salmenu.cxx
index 12291be3df83..92b1d44abdd4 100644
--- a/vcl/osx/salmenu.cxx
+++ b/vcl/osx/salmenu.cxx
@@ -855,7 +855,8 @@ AquaSalMenuItem::AquaSalMenuItem( const SalItemParams* pItemData ) :
[mpMenuItem setEnabled: YES];
// peel mnemonics because on mac there are no such things for menu items
- NSString* pString = CreateNSString( pItemData->aText.replaceAll( "~", "" ) );
+ // Delete CJK-style mnemonics for the dropdown menu of the 'New button' and lower menu of 'File > New'
+ NSString* pString = CreateNSString(MnemonicGenerator::EraseAllMnemonicChars((pItemData->aText)));
if (pString)
{
[mpMenuItem setTitle: pString];