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);