From bebf2f3c889a130f80e8241b484a0b5d48a7a67d Mon Sep 17 00:00:00 2001 From: Alfredo Braunstein Date: Thu, 4 Mar 2004 07:38:11 +0000 Subject: [PATCH] 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 --- src/insets/ChangeLog | 5 +++++ src/insets/insetcollapsable.C | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) 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); -- 2.39.2