vcl/osx/salmenu.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit a2dad54834e885891bc56a83b03767869e646817 Author: xuenhua <xuenhua2...@sina.com> AuthorDate: Sat May 7 16:53:54 2022 +0800 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Mon May 9 11:15:06 2022 +0200 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/+/133872 Tested-by: Caolán McNamara <caol...@redhat.com> Reviewed-by: Caolán McNamara <caol...@redhat.com> 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];