clear selection on 'escape' if present

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3210 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2001-12-14 17:15:56 +00:00
parent 7fdf62dd8e
commit 5c0b5fb2cc

View File

@ -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;
}