mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 12:32:26 +00:00
The uncontroversal part of the selection fix: Always set the X selection
after selecting something with the mouse * src/insets/insettabular.C (InsetTabular::doDispatch): Set the X selection if there is a selection after release of the left mouse button * src/mathed/InsetMathNest.C (InsetMathNest::doDispatch): Set the X selection after double and triple click of the left mouse button (InsetMathNest::lfunMouseRelease): Set the X selection if there is a selection after release of the left mouse button git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16530 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
325cecdea4
commit
3c323c1a37
@ -525,7 +525,10 @@ void InsetTabular::doDispatch(LCursor & cur, FuncRequest & cmd)
|
|||||||
|
|
||||||
case LFUN_MOUSE_RELEASE:
|
case LFUN_MOUSE_RELEASE:
|
||||||
//lyxerr << "# InsetTabular::MouseRelease\n" << bvcur << endl;
|
//lyxerr << "# InsetTabular::MouseRelease\n" << bvcur << endl;
|
||||||
if (cmd.button() == mouse_button::button3)
|
if (cmd.button() == mouse_button::button1) {
|
||||||
|
if (bvcur.selection())
|
||||||
|
theSelection().haveSelection(true);
|
||||||
|
} else if (cmd.button() == mouse_button::button3)
|
||||||
InsetTabularMailer(*this).showDialog(&cur.bv());
|
InsetTabularMailer(*this).showDialog(&cur.bv());
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -596,6 +596,7 @@ void InsetMathNest::doDispatch(LCursor & cur, FuncRequest & cmd)
|
|||||||
cur.selection() = true;
|
cur.selection() = true;
|
||||||
cur.pos() = cur.lastpos();
|
cur.pos() = cur.lastpos();
|
||||||
cur.idx() = cur.lastidx();
|
cur.idx() = cur.lastidx();
|
||||||
|
theSelection().haveSelection(true);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case LFUN_PARAGRAPH_UP:
|
case LFUN_PARAGRAPH_UP:
|
||||||
@ -1218,6 +1219,8 @@ void InsetMathNest::lfunMouseRelease(LCursor & cur, FuncRequest & cmd)
|
|||||||
//lyxerr << "## lfunMouseRelease: buttons: " << cmd.button() << endl;
|
//lyxerr << "## lfunMouseRelease: buttons: " << cmd.button() << endl;
|
||||||
|
|
||||||
if (cmd.button() == mouse_button::button1) {
|
if (cmd.button() == mouse_button::button1) {
|
||||||
|
if (cur.bv().cursor().selection())
|
||||||
|
theSelection().haveSelection(true);
|
||||||
if (!cur.selection())
|
if (!cur.selection())
|
||||||
cur.noUpdate();
|
cur.noUpdate();
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user