From: Alfredo Braunstein Date: Thu, 4 Mar 2004 07:38:11 +0000 (+0000) Subject: make right mouse button click only open the inset dialog X-Git-Tag: 1.6.10~15477 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=bebf2f3c889a130f80e8241b484a0b5d48a7a67d;p=features.git make right mouse button click only open the inset dialog git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8475 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/insets/ChangeLog b/src/insets/ChangeLog index fd2cb96d5a..91b8410b48 100644 --- a/src/insets/ChangeLog +++ b/src/insets/ChangeLog @@ -1,3 +1,8 @@ +2004-03-03 Alfredo Braunstein + + * insetcollapsable.C (lfunMouseRelease): right mouse button only + shows the inset dialog. + 2004-02-27 Alfredo Braunstein * insetlabel.[Ch]: remove them diff --git a/src/insets/insetcollapsable.C b/src/insets/insetcollapsable.C index a294be672b..17b81c6bf2 100644 --- a/src/insets/insetcollapsable.C +++ b/src/insets/insetcollapsable.C @@ -203,8 +203,10 @@ bool InsetCollapsable::descendable() const void InsetCollapsable::lfunMouseRelease(LCursor & cur, FuncRequest const & cmd) { - if (cmd.button() == mouse_button::button3) + if (cmd.button() == mouse_button::button3) { showInsetDialog(&cur.bv()); + return; + } switch (status_) { @@ -216,7 +218,6 @@ void InsetCollapsable::lfunMouseRelease(LCursor & cur, FuncRequest const & cmd) case Open: { FuncRequest cmd1 = cmd; -// cmd1.y -= cur.bv().top_y(); if (hitButton(cmd1)) { lyxerr << "InsetCollapsable::lfunMouseRelease 2" << endl; setStatus(Collapsed);