From 5c0b5fb2cced418054668782e7c07724663774b7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Fri, 14 Dec 2001 17:15:56 +0000 Subject: [PATCH] clear selection on 'escape' if present git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3210 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/formulabase.C | 7 +++++++ 1 file changed, 7 insertions(+) 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; } -- 2.39.5