]> git.lyx.org Git - features.git/commitdiff
make right mouse button click only open the inset dialog
authorAlfredo Braunstein <abraunst@lyx.org>
Thu, 4 Mar 2004 07:38:11 +0000 (07:38 +0000)
committerAlfredo Braunstein <abraunst@lyx.org>
Thu, 4 Mar 2004 07:38:11 +0000 (07:38 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8475 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/ChangeLog
src/insets/insetcollapsable.C

index fd2cb96d5a3013b5882907b73afd08bc1a716238..91b8410b485bcd782a93f4f2de0ae10e8bedfa97 100644 (file)
@@ -1,3 +1,8 @@
+2004-03-03  Alfredo Braunstein  <abraunst@lyx.org>
+
+       * insetcollapsable.C (lfunMouseRelease): right mouse button only
+       shows the inset dialog.
+
 2004-02-27  Alfredo Braunstein  <abraunst@lyx.org>
 
        * insetlabel.[Ch]: remove them
index a294be672b0f25d5d40d789931d2aef07532718e..17b81c6bf2feeaeccb6f74d47122752ccb5a56cb 100644 (file)
@@ -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);