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:
Jürgen Spitzmüller 2006-04-24 10:43:49 +00:00
parent 5a755b4e1e
commit 9e40cf69f7
7 changed files with 20 additions and 6 deletions

View File

@ -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> 2006-04-14 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
* LaTeXFeatures.C (simplefeatures): add tipa. * LaTeXFeatures.C (simplefeatures): add tipa.

View File

@ -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> 2006-04-13 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
* insettabular (doDispatch): use insertAsciiString in * insettabular (doDispatch): use insertAsciiString in

View File

@ -289,7 +289,7 @@ void InsetCollapsable::doDispatch(LCursor & cur, FuncRequest & cmd)
else if (status() == Open && !hitButton(cmd)) else if (status() == Open && !hitButton(cmd))
InsetText::doDispatch(cur, cmd); InsetText::doDispatch(cur, cmd);
else else
cur.noUpdate(); cur.undispatched();
break; break;
case LFUN_MOUSE_MOTION: case LFUN_MOUSE_MOTION:

View File

@ -49,8 +49,10 @@ void InsetRef::doDispatch(LCursor & cur, FuncRequest & cmd)
// Eventually trigger dialog with button 3 not 1 // Eventually trigger dialog with button 3 not 1
if (cmd.button() == mouse_button::button3) if (cmd.button() == mouse_button::button3)
cur.bv().owner()->dispatch(FuncRequest(LFUN_LABEL_GOTO, getContents())); cur.bv().owner()->dispatch(FuncRequest(LFUN_LABEL_GOTO, getContents()));
else else {
InsetCommandMailer("ref", *this).showDialog(&cur.bv()); InsetCommandMailer("ref", *this).showDialog(&cur.bv());
cur.undispatched();
}
return; return;
case LFUN_MOUSE_RELEASE: case LFUN_MOUSE_RELEASE:

View File

@ -475,7 +475,7 @@ void InsetTabular::doDispatch(LCursor & cur, FuncRequest & cmd)
// we'll pop up the table dialog on release // we'll pop up the table dialog on release
if (cmd.button() == mouse_button::button3) if (cmd.button() == mouse_button::button3)
break; cur.undispatched();
break; break;
case LFUN_MOUSE_MOTION: case LFUN_MOUSE_MOTION:

View File

@ -1025,10 +1025,8 @@ void LyXText::dispatch(LCursor & cur, FuncRequest & cmd)
// Single-click on work area // Single-click on work area
case LFUN_MOUSE_PRESS: { case LFUN_MOUSE_PRESS: {
// Right click on a footnote flag opens float menu // Right click on a footnote flag opens float menu
if (cmd.button() == mouse_button::button3) { if (cmd.button() == mouse_button::button3)
cur.clearSelection(); cur.clearSelection();
break;
}
// Middle button press pastes if we have a selection // Middle button press pastes if we have a selection
// We do this here as if the selection was inside an inset // We do this here as if the selection was inside an inset

View File

@ -58,6 +58,9 @@ What's new
- Text copied from an ERT box has no longer the pseudo "latex" language - Text copied from an ERT box has no longer the pseudo "latex" language
(bug 2476) (bug 2476)
- Don't jump back to previous cursor position when trying to click on
an inset (bug 2526)
* Configuration/Installation: * Configuration/Installation:
- Make LyX/Win work under windows 98. - Make LyX/Win work under windows 98.