mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 11:16:55 +00:00
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:
parent
2ad5f8cb4b
commit
67891b48c3
@ -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
|
||||
|
@ -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.
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user