From e1636b9f24ab53793c508a10e5a8eefdd33c9afe Mon Sep 17 00:00:00 2001 From: Pavel Sanda Date: Tue, 14 Dec 2010 17:33:38 +0000 Subject: [PATCH] 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 --- src/mathed/InsetMathHull.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/mathed/InsetMathHull.cpp b/src/mathed/InsetMathHull.cpp index 04c5b82c3e..374e81be66 100644 --- a/src/mathed/InsetMathHull.cpp +++ b/src/mathed/InsetMathHull.cpp @@ -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); -- 2.39.2