Make HOME/END keys work to leave math sub-insets

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9798 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Martin Vermeer 2005-04-10 09:07:28 +00:00
parent 75e4975063
commit 7f1066c339
3 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2005-04-09 Martin Vermeer <martin.vermeer@hut.fi>
* math_gridinset.C (doDispatch):
* math_nestinset.C (doDispatch): enable HOME/END keys to skip
out of inset (adding cur.undispatched())
2005-04-09 Martin Vermeer <martin.vermeer@hut.fi>
* math_colorinset.C (draw): fix crash and cursor positioning.

View File

@ -1210,6 +1210,7 @@ void MathGridInset::doDispatch(LCursor & cur, FuncRequest & cmd)
cur.pos() = 0;
} else {
cmd = FuncRequest(LFUN_FINISHED_LEFT);
cur.undispatched();
}
break;
@ -1230,6 +1231,7 @@ void MathGridInset::doDispatch(LCursor & cur, FuncRequest & cmd)
cur.pos() = cur.lastpos();
} else {
cmd = FuncRequest(LFUN_FINISHED_RIGHT);
cur.undispatched();
}
break;

View File

@ -555,6 +555,7 @@ void MathNestInset::doDispatch(LCursor & cur, FuncRequest & cmd)
cur.pos() = 0;
} else {
cmd = FuncRequest(LFUN_FINISHED_LEFT);
cur.undispatched();
}
break;
@ -575,6 +576,7 @@ void MathNestInset::doDispatch(LCursor & cur, FuncRequest & cmd)
cur.pos() = cur.lastpos();
} else {
cmd = FuncRequest(LFUN_FINISHED_RIGHT);
cur.undispatched();
}
break;