mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Fix part of http://bugzilla.lyx.org/show_bug.cgi?id=5339
* InsetInfo.cpp (updateInfo): insert the text using inherit_font so that there is not an extra \textsf output to LaTeX; change "shortcut" to display the first shortcut, not the last (if only to be consistent with menus). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27234 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
7f61a18d2b
commit
7356fcd2cf
@ -285,11 +285,11 @@ void InsetInfo::updateInfo()
|
||||
break;
|
||||
}
|
||||
if (type_ == SHORTCUT_INFO)
|
||||
setText(bindings.rbegin()->print(KeySequence::Portable),
|
||||
Font(getLayout().font()), false);
|
||||
setText(bindings.begin()->print(KeySequence::Portable),
|
||||
Font(inherit_font), false);
|
||||
else
|
||||
setText(theTopLevelKeymap().printBindings(func, KeySequence::Portable),
|
||||
Font(getLayout().font()), false);
|
||||
Font(inherit_font), false);
|
||||
break;
|
||||
}
|
||||
case LYXRC_INFO: {
|
||||
|
Loading…
Reference in New Issue
Block a user