+2002-08-07 Juergen Vigna <jug@lyx.org>
+
+ * insettabular.C (localDispatch): make delete not put the stuff
+ in the clipboard only do this on a cut operation.
+
+ * insettext.C (localDispatch): make delete and backspace not put
+ selected stuff to the clipboard.
2002-08-07 André Pönitz <poenitz@gmx.net>
case LFUN_UP_PARAGRAPH:
case LFUN_UP_PARAGRAPHSEL:
case LFUN_BACKSPACE:
- case LFUN_DELETE:
case LFUN_HOME:
case LFUN_HOMESEL:
case LFUN_END:
case LFUN_CUT:
if (!copySelection(bv))
break;
+ // no break here!
+ case LFUN_DELETE:
setUndo(bv, Undo::DELETE,
bv->text->cursor.par(),
bv->text->cursor.par()->next());
} else if ((cursor_.x() - offset) < 20) {
scroll(bv, 20 - cursor_.x() + offset);
updateLocal(bv, FULL, false);
- } else if (scroll(false) && top_x > 20 &&
+ } else if (scroll() && top_x > 20 &&
(top_x + tabular->GetWidthOfTabular()) > (bv->workWidth() - 20)) {
scroll(bv, old_x - cursor_.x());
updateLocal(bv, FULL, false);
bv->switchKeyMap();
if (lyxrc.auto_region_delete) {
if (lt->selection.set()) {
- lt->cutSelection(bv, false);
+ lt->cutSelection(bv, false, false);
}
}
lt->clearSelection();
setUndo(bv, Undo::DELETE,
lt->cursor.par(), lt->cursor.par()->next());
if (lt->selection.set())
- lt->cutSelection(bv);
+ lt->cutSelection(bv, true, false);
else
lt->backspace(bv);
updwhat = CURSOR_PAR;
setUndo(bv, Undo::DELETE,
lt->cursor.par(), lt->cursor.par()->next());
if (lt->selection.set()) {
- lt->cutSelection(bv);
+ lt->cutSelection(bv, true, false);
} else {
lt->Delete(bv);
}