if (cmd.button() == mouse_button::button1) {
// try to dispatch to enclosed insets first
mathcursor->dispatch(cmd);
+ cmd.view()->stuffClipboard(mathcursor->grabSelection());
// try to set the cursor
//delete mathcursor;
//mathcursor = new MathCursor(this, x == 0);
fitInsetCursor(bv);
showInsetCursor(bv);
revealCodes(bv);
+ cmd.view()->stuffClipboard(mathcursor->grabSelection());
} else {
releaseMathCursor(bv);
bv->unlockInset(this);
void MathCursor::backspace()
{
autocorrect_ = false;
- if (pos() == 0) {
- pullArg();
- return;
- }
if (selection_) {
selDel();
return;
}
+ if (pos() == 0) {
+ pullArg();
+ return;
+ }
+
if (inMacroMode()) {
MathUnknownInset * p = activeMacro();
if (p->name().size() > 1) {
class BufferView;
class MathPainterInfo;
class MathUnknownInset;
-class Selection;
/**