Report disabled BREAK_PARAGRAPH in MathHull getStatus so we can use command-alternatives.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36882 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Pavel Sanda 2010-12-14 17:33:38 +00:00
parent b7bca67010
commit e1636b9f24

View File

@ -1479,6 +1479,11 @@ bool InsetMathHull::getStatus(Cursor & cur, FuncRequest const & cmd,
status.setEnabled(true); status.setEnabled(true);
return true; return true;
// we never allow this in math, and we want to bind enter
// to another actions in command-alternatives
case LFUN_BREAK_PARAGRAPH:
status.setEnabled(false);
return true;
case LFUN_MATH_MUTATE: { case LFUN_MATH_MUTATE: {
HullType const ht = hullType(cmd.argument()); HullType const ht = hullType(cmd.argument());
status.setOnOff(type_ == ht); status.setOnOff(type_ == ht);