mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +00:00
include tabulars and math in the "paste recent" stack
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16611 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
a683072ea0
commit
c3bb45648c
@ -501,7 +501,17 @@ void InsetTabular::doDispatch(LCursor & cur, FuncRequest & cmd)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (cmd.button() == mouse_button::button2) {
|
if (cmd.button() == mouse_button::button2) {
|
||||||
cmd = FuncRequest(LFUN_PRIMARY_SELECTION_PASTE, "paragraph");
|
if (bvcur.selection()) {
|
||||||
|
// See comment in LyXText::dispatch why we
|
||||||
|
// do this
|
||||||
|
// FIXME This does not use paste_tabular,
|
||||||
|
// another reason why paste_tabular should go.
|
||||||
|
cap::copySelectionToStack(bvcur);
|
||||||
|
cmd = FuncRequest(LFUN_PASTE, "0");
|
||||||
|
} else {
|
||||||
|
cmd = FuncRequest(LFUN_PRIMARY_SELECTION_PASTE,
|
||||||
|
"paragraph");
|
||||||
|
}
|
||||||
doDispatch(cur, cmd);
|
doDispatch(cur, cmd);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -1187,9 +1187,11 @@ void InsetMathNest::lfunMousePress(LCursor & cur, FuncRequest & cmd)
|
|||||||
//cur.noUpdate();
|
//cur.noUpdate();
|
||||||
} else if (cmd.button() == mouse_button::button2) {
|
} else if (cmd.button() == mouse_button::button2) {
|
||||||
MathArray ar;
|
MathArray ar;
|
||||||
if (cur.selection())
|
if (cur.selection()) {
|
||||||
|
// See comment in LyXText::dispatch why we do this
|
||||||
|
cap::copySelectionToStack(bv.cursor());
|
||||||
asArray(bv.cursor().selectionAsString(false), ar);
|
asArray(bv.cursor().selectionAsString(false), ar);
|
||||||
else
|
} else
|
||||||
asArray(theSelection().get(), ar);
|
asArray(theSelection().get(), ar);
|
||||||
|
|
||||||
cur.insert(ar);
|
cur.insert(ar);
|
||||||
|
Loading…
Reference in New Issue
Block a user