mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Hide multi-keystroke accelerators in Mac menu (bug 12693).
Patch from Juergen.
(cherry picked from commit fb43449c80
)
This commit is contained in:
parent
27ef57096c
commit
d04c406222
@ -1982,8 +1982,16 @@ static QString label(MenuItem const & mi)
|
|||||||
}
|
}
|
||||||
|
|
||||||
QString const binding = mi.binding();
|
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())
|
if (!binding.isEmpty())
|
||||||
label += '\t' + binding;
|
label += '\t' + binding;
|
||||||
|
#endif
|
||||||
|
|
||||||
return label;
|
return label;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user