diff options
author | xuenhua <xuenhua2008@sina.com> | 2022-05-07 16:53:54 +0800 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-05-08 10:57:11 +0200 |
commit | e92536bac2545d7f2722fc2529d8c7a8ff7c85d8 (patch) | |
tree | 5ffb65170aca77f67e7d578d7a4618a2e9275c3c /vcl/osx | |
parent | ed977f0b6c849739d3c843c8425442265e2eb7ca (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.cxx | 3 |
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]; |