]> git.lyx.org Git - features.git/commitdiff
Report disabled BREAK_PARAGRAPH in MathHull getStatus so we can use command-alternatives.
authorPavel Sanda <sanda@lyx.org>
Tue, 14 Dec 2010 17:33:38 +0000 (17:33 +0000)
committerPavel Sanda <sanda@lyx.org>
Tue, 14 Dec 2010 17:33:38 +0000 (17:33 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36882 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/InsetMathHull.cpp

index 04c5b82c3e0149800fcb05dddde5248b92250e02..374e81be663e3911e2e9b3465a1688652d7b0cf0 100644 (file)
@@ -1479,6 +1479,11 @@ bool InsetMathHull::getStatus(Cursor & cur, FuncRequest const & cmd,
                status.setEnabled(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: {
                HullType const ht = hullType(cmd.argument());
                status.setOnOff(type_ == ht);