* 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:
Jean-Marc Lasgouttes 2008-11-03 11:12:52 +00:00
parent 7f61a18d2b
commit 7356fcd2cf

View File

@ -285,11 +285,11 @@ void InsetInfo::updateInfo()
break; break;
} }
if (type_ == SHORTCUT_INFO) if (type_ == SHORTCUT_INFO)
setText(bindings.rbegin()->print(KeySequence::Portable), setText(bindings.begin()->print(KeySequence::Portable),
Font(getLayout().font()), false); Font(inherit_font), false);
else else
setText(theTopLevelKeymap().printBindings(func, KeySequence::Portable), setText(theTopLevelKeymap().printBindings(func, KeySequence::Portable),
Font(getLayout().font()), false); Font(inherit_font), false);
break; break;
} }
case LYXRC_INFO: { case LYXRC_INFO: {