mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-25 09:35:39 +00:00
fix bug 2101: Any character followed by Right Arrow moves the cursor to the next cell
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10563 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
da452bbe93
commit
e70927a96c
@ -1,3 +1,8 @@
|
|||||||
|
2005-10-20 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
|
||||||
|
|
||||||
|
* insettabular.C (doDispatch): do not override the result of
|
||||||
|
LFUN_RIGHT/LEFT. (bug 2101)
|
||||||
|
|
||||||
2005-09-16 Michael Gerz <michael.gerz@teststep.org>
|
2005-09-16 Michael Gerz <michael.gerz@teststep.org>
|
||||||
|
|
||||||
* insetvspace.C (metrics): compute ascent and descent in a way that
|
* insetvspace.C (metrics): compute ascent and descent in a way that
|
||||||
|
@ -511,24 +511,24 @@ void InsetTabular::doDispatch(LCursor & cur, FuncRequest & cmd)
|
|||||||
case LFUN_RIGHTSEL:
|
case LFUN_RIGHTSEL:
|
||||||
case LFUN_RIGHT:
|
case LFUN_RIGHT:
|
||||||
cell(cur.idx())->dispatch(cur, cmd);
|
cell(cur.idx())->dispatch(cur, cmd);
|
||||||
cur.dispatched(); // override the cell's decision
|
if (!cur.result().dispatched()) {
|
||||||
if (sl == cur.top())
|
|
||||||
isRightToLeft(cur) ? movePrevCell(cur) : moveNextCell(cur);
|
isRightToLeft(cur) ? movePrevCell(cur) : moveNextCell(cur);
|
||||||
if (sl == cur.top()) {
|
if (sl == cur.top())
|
||||||
cmd = FuncRequest(LFUN_FINISHED_RIGHT);
|
cmd = FuncRequest(LFUN_FINISHED_RIGHT);
|
||||||
cur.undispatched();
|
else
|
||||||
|
cur.dispatched();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case LFUN_LEFTSEL:
|
case LFUN_LEFTSEL:
|
||||||
case LFUN_LEFT:
|
case LFUN_LEFT:
|
||||||
cell(cur.idx())->dispatch(cur, cmd);
|
cell(cur.idx())->dispatch(cur, cmd);
|
||||||
cur.dispatched(); // override the cell's decision
|
if (!cur.result().dispatched()) {
|
||||||
if (sl == cur.top())
|
|
||||||
isRightToLeft(cur) ? moveNextCell(cur) : movePrevCell(cur);
|
isRightToLeft(cur) ? moveNextCell(cur) : movePrevCell(cur);
|
||||||
if (sl == cur.top()) {
|
if (sl == cur.top())
|
||||||
cmd = FuncRequest(LFUN_FINISHED_LEFT);
|
cmd = FuncRequest(LFUN_FINISHED_LEFT);
|
||||||
cur.undispatched();
|
else
|
||||||
|
cur.dispatched();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user