mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-27 10:37:53 +00:00
Hide multi-keystroke accelerators in Mac menu (bug 12693).
Patch from Juergen. (cherry picked from commit fb43449c80d8fdd31eb79a70aec8f70083d48b2e)
This commit is contained in:
parent
27ef57096c
commit
d04c406222
@ -1982,8 +1982,16 @@ static QString label(MenuItem const & mi)
|
||||
}
|
||||
|
||||
QString const binding = mi.binding();
|
||||
#if defined(Q_OS_MAC)
|
||||
// MacOS cannot display complex bindings, so hide those
|
||||
// https://doc.qt.io/qt-6/macos-issues.html#menu-actions
|
||||
// #12693
|
||||
if (!binding.isEmpty() && !binding.contains(" "))
|
||||
label += '\t' + binding;
|
||||
#else
|
||||
if (!binding.isEmpty())
|
||||
label += '\t' + binding;
|
||||
#endif
|
||||
|
||||
return label;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user