mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-12 16:50:39 +00:00
Fix some incorrect middle button paste behavior. A better fix is due after 1.5.1.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@19297 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
c83c5b0510
commit
6a4b38c97d
@ -3189,6 +3189,9 @@ void InsetTabular::doDispatch(Cursor & cur, FuncRequest & cmd)
|
||||
|
||||
case LFUN_MOUSE_PRESS:
|
||||
//lyxerr << "# InsetTabular::MousePress\n" << cur.bv().cursor() << endl;
|
||||
// FIXME: the following should be replaced by a better fix
|
||||
// that is already used for plain text (Text3.cpp).
|
||||
cap::saveSelection(bvcur);
|
||||
|
||||
if (cmd.button() == mouse_button::button1
|
||||
|| (cmd.button() == mouse_button::button3
|
||||
|
@ -1153,6 +1153,9 @@ void InsetMathNest::lfunMousePress(Cursor & cur, FuncRequest & cmd)
|
||||
{
|
||||
//lyxerr << "## lfunMousePress: buttons: " << cmd.button() << endl;
|
||||
BufferView & bv = cur.bv();
|
||||
// FIXME: the following should be replaced by a better fix
|
||||
// that is already used for plain text (Text3.cpp).
|
||||
cap::saveSelection(bv.cursor());
|
||||
if (cmd.button() == mouse_button::button1) {
|
||||
//lyxerr << "## lfunMousePress: setting cursor to: " << cur << endl;
|
||||
bv.mouseSetCursor(cur);
|
||||
|
Loading…
Reference in New Issue
Block a user