fix double/triple clicking to select (bug 1811)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9838 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2005-04-20 10:47:15 +00:00
parent 2ad5f8cb4b
commit 67891b48c3
4 changed files with 12 additions and 5 deletions

View File

@ -1,3 +1,8 @@
2005-04-19 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
* text3.C (dispatch): set cursor on double/triple click events
(bug 1811)
2005-04-14 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
* lyxfunc.C (actOnUpdatedPrefs): avoid warning

View File

@ -1,3 +1,8 @@
2005-04-19 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
* insetcollapsable.C (doDispatch): pass through double/triple
click events (bug 1811).
2005-04-14 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
* insetwrap.C (addToToc): copy the code from InsetFloat::addToToc.

View File

@ -340,11 +340,6 @@ void InsetCollapsable::doDispatch(LCursor & cur, FuncRequest & cmd)
}
break;
case LFUN_MOUSE_DOUBLE:
case LFUN_MOUSE_TRIPLE:
cur.undispatched();
break;
case LFUN_INSET_TOGGLE:
if (cmd.argument == "open")
setStatus(Open);

View File

@ -981,6 +981,7 @@ void LyXText::dispatch(LCursor & cur, FuncRequest & cmd)
cur.resetAnchor();
cursorEnd(cur);
cur.setSelection();
bv->cursor() = cur;
bv->haveSelection(cur.selection());
}
break;
@ -988,6 +989,7 @@ void LyXText::dispatch(LCursor & cur, FuncRequest & cmd)
case LFUN_MOUSE_DOUBLE:
if (cmd.button() == mouse_button::button1) {
selectWord(cur, lyx::WHOLE_WORD_STRICT);
bv->cursor() = cur;
bv->haveSelection(cur.selection());
}
break;