mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-13 17:20:55 +00:00
In mathed, select only current cell on double-click
Keep the behavior of split selection with triple click. Fixes part of #9747.
This commit is contained in:
parent
8d76be389d
commit
7799e7960c
@ -729,10 +729,17 @@ void InsetMathNest::doDispatch(Cursor & cur, FuncRequest & cmd)
|
|||||||
}
|
}
|
||||||
|
|
||||||
case LFUN_MOUSE_DOUBLE:
|
case LFUN_MOUSE_DOUBLE:
|
||||||
case LFUN_MOUSE_TRIPLE:
|
|
||||||
case LFUN_WORD_SELECT:
|
case LFUN_WORD_SELECT:
|
||||||
cur.pos() = 0;
|
cur.pos() = 0;
|
||||||
|
cur.resetAnchor();
|
||||||
|
cur.setSelection(true);
|
||||||
|
cur.pos() = cur.lastpos();
|
||||||
|
cur.bv().cursor() = cur;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case LFUN_MOUSE_TRIPLE:
|
||||||
cur.idx() = 0;
|
cur.idx() = 0;
|
||||||
|
cur.pos() = 0;
|
||||||
cur.resetAnchor();
|
cur.resetAnchor();
|
||||||
cur.setSelection(true);
|
cur.setSelection(true);
|
||||||
cur.idx() = cur.lastidx();
|
cur.idx() = cur.lastidx();
|
||||||
|
@ -43,7 +43,7 @@ What's new
|
|||||||
|
|
||||||
- The indentation of beamer frame contents has been decreased and unified.
|
- The indentation of beamer frame contents has been decreased and unified.
|
||||||
|
|
||||||
|
- In mathed, select only current cell on double-click
|
||||||
|
|
||||||
* DOCUMENTATION AND LOCALIZATION
|
* DOCUMENTATION AND LOCALIZATION
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user