mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-13 01:08:45 +00:00
Don't jump back to cursor on inset clicking (bug 2426):
* src/insets/insetcollapsable.C (void InsetCollapsable::doDispatch): undispatch cursor after lmb button click. * src/insets/insettabular.C (void InsetTabular::doDispatch): undispatch cursor after rmb click. * src/insets/insetref.C (void InsetRef::doDispatch): undispatch cursor after rmb click. * src/text3.C (void LyXText::dispatch): set cursor also after rmb click. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13724 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
5a755b4e1e
commit
9e40cf69f7
@ -1,3 +1,7 @@
|
||||
2006-04-24 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
|
||||
|
||||
* text3.C (dispatch): set cursor also after rmb click (bug 2326).
|
||||
|
||||
2006-04-14 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
|
||||
|
||||
* LaTeXFeatures.C (simplefeatures): add tipa.
|
||||
|
@ -1,3 +1,10 @@
|
||||
2006-04-24 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
|
||||
|
||||
* insetcollapsable.C (doDispatch): undispatch cursor after lmb click.
|
||||
* insettabular.C (doDispatch):
|
||||
* insetref.C (doDispatch): undispatch cursor after rmb click.
|
||||
(bug 2426)
|
||||
|
||||
2006-04-13 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
|
||||
|
||||
* insettabular (doDispatch): use insertAsciiString in
|
||||
|
@ -289,7 +289,7 @@ void InsetCollapsable::doDispatch(LCursor & cur, FuncRequest & cmd)
|
||||
else if (status() == Open && !hitButton(cmd))
|
||||
InsetText::doDispatch(cur, cmd);
|
||||
else
|
||||
cur.noUpdate();
|
||||
cur.undispatched();
|
||||
break;
|
||||
|
||||
case LFUN_MOUSE_MOTION:
|
||||
|
@ -49,8 +49,10 @@ void InsetRef::doDispatch(LCursor & cur, FuncRequest & cmd)
|
||||
// Eventually trigger dialog with button 3 not 1
|
||||
if (cmd.button() == mouse_button::button3)
|
||||
cur.bv().owner()->dispatch(FuncRequest(LFUN_LABEL_GOTO, getContents()));
|
||||
else
|
||||
else {
|
||||
InsetCommandMailer("ref", *this).showDialog(&cur.bv());
|
||||
cur.undispatched();
|
||||
}
|
||||
return;
|
||||
|
||||
case LFUN_MOUSE_RELEASE:
|
||||
|
@ -475,7 +475,7 @@ void InsetTabular::doDispatch(LCursor & cur, FuncRequest & cmd)
|
||||
|
||||
// we'll pop up the table dialog on release
|
||||
if (cmd.button() == mouse_button::button3)
|
||||
break;
|
||||
cur.undispatched();
|
||||
break;
|
||||
|
||||
case LFUN_MOUSE_MOTION:
|
||||
|
@ -1025,10 +1025,8 @@ void LyXText::dispatch(LCursor & cur, FuncRequest & cmd)
|
||||
// Single-click on work area
|
||||
case LFUN_MOUSE_PRESS: {
|
||||
// Right click on a footnote flag opens float menu
|
||||
if (cmd.button() == mouse_button::button3) {
|
||||
if (cmd.button() == mouse_button::button3)
|
||||
cur.clearSelection();
|
||||
break;
|
||||
}
|
||||
|
||||
// Middle button press pastes if we have a selection
|
||||
// We do this here as if the selection was inside an inset
|
||||
|
@ -58,6 +58,9 @@ What's new
|
||||
- Text copied from an ERT box has no longer the pseudo "latex" language
|
||||
(bug 2476)
|
||||
|
||||
- Don't jump back to previous cursor position when trying to click on
|
||||
an inset (bug 2526)
|
||||
|
||||
* Configuration/Installation:
|
||||
|
||||
- Make LyX/Win work under windows 98.
|
||||
|
Loading…
Reference in New Issue
Block a user