mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-14 09:32:20 +00:00
backport rev. 23643 from sts:
URL: http://www.lyx.org/trac/changeset/23643 Log: * also forward delete numbering in math hull git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@23712 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
ec1e761a17
commit
0a93c2d586
@ -1126,10 +1126,17 @@ void InsetMathHull::doDispatch(Cursor & cur, FuncRequest & cmd)
|
||||
case LFUN_WORD_DELETE_FORWARD:
|
||||
case LFUN_CHAR_DELETE_FORWARD:
|
||||
if (col(cur.idx()) + 1 == ncols()
|
||||
&& cur.pos() == cur.lastpos()
|
||||
&& !label(row(cur.idx())).empty()) {
|
||||
&& cur.pos() == cur.lastpos()) {
|
||||
if (!label(row(cur.idx())).empty()) {
|
||||
recordUndoInset(cur);
|
||||
label(row(cur.idx()), docstring());
|
||||
} else if (numbered(row(cur.idx()))) {
|
||||
recordUndoInset(cur);
|
||||
numbered(row(cur.idx()), false);
|
||||
} else {
|
||||
InsetMathGrid::doDispatch(cur, cmd);
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
InsetMathGrid::doDispatch(cur, cmd);
|
||||
return;
|
||||
|
@ -86,9 +86,11 @@ What's new
|
||||
macro, such that bold super and subscripts have the correct size even
|
||||
when not using amsmath.
|
||||
|
||||
|
||||
* USER INTERFACE:
|
||||
|
||||
- Allow deleting a label in a formula with the delete key (bug 2556).
|
||||
- Allow deleting a label in a formula as well as the numbering with the
|
||||
delete key (bug 2556).
|
||||
|
||||
- Allow to enter starred math commands such as \tag* (bug 4584).
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user