mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 05:25:26 +00:00
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:
parent
995a7a4c86
commit
bebf2f3c88
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user