mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 13:31:49 +00:00
small stuff, fix for one of the bugs John mentioned
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5475 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
e2778d8628
commit
13434556ce
@ -321,6 +321,7 @@ Inset::RESULT InsetFormulaBase::lfunMouseRelease(FuncRequest const & cmd)
|
||||
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);
|
||||
@ -797,6 +798,7 @@ Inset::RESULT InsetFormulaBase::localDispatch(FuncRequest const & cmd)
|
||||
fitInsetCursor(bv);
|
||||
showInsetCursor(bv);
|
||||
revealCodes(bv);
|
||||
cmd.view()->stuffClipboard(mathcursor->grabSelection());
|
||||
} else {
|
||||
releaseMathCursor(bv);
|
||||
bv->unlockInset(this);
|
||||
|
@ -415,16 +415,17 @@ void MathCursor::paste(string const & data)
|
||||
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) {
|
||||
|
@ -29,7 +29,6 @@ class InsetFormulaBase;
|
||||
class BufferView;
|
||||
class MathPainterInfo;
|
||||
class MathUnknownInset;
|
||||
class Selection;
|
||||
|
||||
/**
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user