diff options
author | xuenhua <xuenhua2008@sina.com> | 2022-05-07 16:53:54 +0800 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-05-09 11:15:06 +0200 |
commit | a2dad54834e885891bc56a83b03767869e646817 (patch) | |
tree | d89b9c68c3775a99b9ad6741da9d0007569b8b55 | |
parent | f52f599518b5b3aef78b7af1d3a62996eec53a1f (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/+/133872
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-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]; |