From: André Pönitz Date: Fri, 14 Dec 2001 17:15:56 +0000 (+0000) Subject: clear selection on 'escape' if present X-Git-Tag: 1.6.10~20170 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=5c0b5fb2cced418054668782e7c07724663774b7;p=features.git clear selection on 'escape' if present git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3210 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/mathed/formulabase.C b/src/mathed/formulabase.C index 5561a04507..7a54dc02b1 100644 --- a/src/mathed/formulabase.C +++ b/src/mathed/formulabase.C @@ -652,6 +652,13 @@ InsetFormulaBase::localDispatch(BufferView * bv, kb_action action, result = UNDISPATCHED; break; + case LFUN_ESCAPE: + if (mathcursor->selection()) + mathcursor->selClear(); + else + result = UNDISPATCHED; + break; + default: result = UNDISPATCHED; }