From: Pavel Sanda Date: Tue, 14 Dec 2010 17:33:38 +0000 (+0000) Subject: Report disabled BREAK_PARAGRAPH in MathHull getStatus so we can use command-alternatives. X-Git-Tag: 2.0.0~1376 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=e1636b9f24ab53793c508a10e5a8eefdd33c9afe;p=features.git 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 --- 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);