summaryrefslogtreecommitdiff
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-16 20:10:17 +0200
commite422efcaff1bf789343a73a16e46b00f303e3032 (patch)
tree2147ee97f14c7aa14ca82580c9dadde0d11161d7
parenta6045159237419ce8fa49202c672e3895f0ab30a (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>
-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 7b5b203668d8..31159f8545c0 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 );
}