summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorheiko tietze <tietze.heiko@gmail.com>2018-04-16 12:11:33 +0200
committerHeiko Tietze <tietze.heiko@gmail.com>2018-04-17 15:51:37 +0200
commit54473bec1f419773dd0a44c3ed2754b7f7f7e840 (patch)
treea2e4d090cf3ef847e2c1c2b45d2882482baf9fd9 /vcl
parent4b48a0b49de597fc9e9abb012fb31b6fedfee85b (diff)
tdf#117033 - Tooltips show the wrong symbol for MOD3 combinations
Symbol for MOD3 added Change-Id: Idb76199fbff240fe39c96ed837db098a4283d70b Reviewed-on: https://gerrit.libreoffice.org/52957 Reviewed-by: Tor Lillqvist <tml@collabora.com> Tested-by: Tor Lillqvist <tml@collabora.com> Tested-by: Jenkins <ci@libreoffice.org> (cherry picked from commit e422efcaff1bf789343a73a16e46b00f303e3032) Reviewed-on: https://gerrit.libreoffice.org/53015 Reviewed-by: Heiko Tietze <tietze.heiko@gmail.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/osx/salframe.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/vcl/osx/salframe.cxx b/vcl/osx/salframe.cxx
index c029f25159ba..ef22d101cf6a 100644
--- a/vcl/osx/salframe.cxx
+++ b/vcl/osx/salframe.cxx
@@ -1026,13 +1026,13 @@ OUString AquaSalFrame::GetKeyName( sal_uInt16 nKeyCode )
if( it != aKeyMap.end() )
{
if( (nKeyCode & KEY_SHIFT) != 0 )
- aResult.append( u'\x21e7' );
+ aResult.append( u'\x21e7' ); //⇧
if( (nKeyCode & KEY_MOD1) != 0 )
- aResult.append( u'\x2318' );
- // we do not really handle Alt (see below)
- // we map it to MOD3, which is actually Command
- if( (nKeyCode & (KEY_MOD2|KEY_MOD3)) != 0 )
- aResult.append( u'\x2325' );
+ aResult.append( u'\x2318' ); //⌘
+ if( (nKeyCode & KEY_MOD2) != 0 )
+ aResult.append( u'\x2325' ); //⌥
+ if( (nKeyCode & KEY_MOD3) != 0 )
+ aResult.append( u'\x2303' ); //⌃
aResult.append( it->second );
}