mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
leave math not only to the left (Thanks, Juergen!)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2526 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
53ca273eec
commit
2cbf623b37
@ -382,7 +382,7 @@ InsetFormulaBase::localDispatch(BufferView * bv, kb_action action,
|
|||||||
sel = true; // fall through...
|
sel = true; // fall through...
|
||||||
|
|
||||||
case LFUN_RIGHT:
|
case LFUN_RIGHT:
|
||||||
result = DISPATCH_RESULT(mathcursor->right(sel));
|
result = mathcursor->right(sel) ? DISPATCHED : FINISHED_RIGHT;
|
||||||
updateLocal(bv, false);
|
updateLocal(bv, false);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -391,7 +391,7 @@ InsetFormulaBase::localDispatch(BufferView * bv, kb_action action,
|
|||||||
sel = true; // fall through
|
sel = true; // fall through
|
||||||
|
|
||||||
case LFUN_LEFT:
|
case LFUN_LEFT:
|
||||||
result = DISPATCH_RESULT(mathcursor->left(sel));
|
result = mathcursor->left(sel) ? DISPATCHED : FINISHED;
|
||||||
updateLocal(bv, false);
|
updateLocal(bv, false);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -400,7 +400,7 @@ InsetFormulaBase::localDispatch(BufferView * bv, kb_action action,
|
|||||||
sel = true;
|
sel = true;
|
||||||
|
|
||||||
case LFUN_UP:
|
case LFUN_UP:
|
||||||
result = DISPATCH_RESULT(mathcursor->up(sel));
|
result = mathcursor->up(sel) ? DISPATCHED : FINISHED_UP;
|
||||||
updateLocal(bv, false);
|
updateLocal(bv, false);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -409,7 +409,7 @@ InsetFormulaBase::localDispatch(BufferView * bv, kb_action action,
|
|||||||
sel = true;
|
sel = true;
|
||||||
|
|
||||||
case LFUN_DOWN:
|
case LFUN_DOWN:
|
||||||
result = DISPATCH_RESULT(mathcursor->down(sel));
|
result = mathcursor->down(sel) ? DISPATCHED : FINISHED_DOWN;
|
||||||
updateLocal(bv, false);
|
updateLocal(bv, false);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -690,7 +690,7 @@ InsetFormulaBase::localDispatch(BufferView * bv, kb_action action,
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
lyxerr << "Closed by action " << action << endl;
|
lyxerr << "Closed by action " << action << endl;
|
||||||
result = FINISHED;
|
result = FINISHED_RIGHT;
|
||||||
}
|
}
|
||||||
|
|
||||||
mathcursor->normalize();
|
mathcursor->normalize();
|
||||||
|
Loading…
Reference in New Issue
Block a user