vcl/osx/salmenu.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit e92536bac2545d7f2722fc2529d8c7a8ff7c85d8
Author:     xuenhua <xuenhua2...@sina.com>
AuthorDate: Sat May 7 16:53:54 2022 +0800
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Sun May 8 10:57:11 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/+/133973
    Tested-by: Jenkins
    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];

Reply via email to