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
This commit is contained in:
Alfredo Braunstein 2004-03-04 07:38:11 +00:00
parent 995a7a4c86
commit bebf2f3c88
2 changed files with 8 additions and 2 deletions

View 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

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