mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 11:16:55 +00:00
Make right click open minimalistic insets. See bug 4400.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22804 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
327d1bc6d3
commit
a3b3115915
@ -528,9 +528,11 @@ void InsetCollapsable::doDispatch(Cursor & cur, FuncRequest & cmd)
|
|||||||
case LFUN_MOUSE_RELEASE:
|
case LFUN_MOUSE_RELEASE:
|
||||||
if (cmd.button() == mouse_button::button3) {
|
if (cmd.button() == mouse_button::button3) {
|
||||||
// There is no button to right click:
|
// There is no button to right click:
|
||||||
if (geometry() == Corners ||
|
if (decoration() == Minimalistic ||
|
||||||
|
geometry() == Corners ||
|
||||||
geometry() == SubLabel ||
|
geometry() == SubLabel ||
|
||||||
geometry() == NoButton) {
|
geometry() == NoButton
|
||||||
|
) {
|
||||||
if (status_ == Open)
|
if (status_ == Open)
|
||||||
setStatus(cur, Collapsed);
|
setStatus(cur, Collapsed);
|
||||||
else
|
else
|
||||||
|
@ -103,7 +103,7 @@ public:
|
|||||||
* -------------+-------------------------------
|
* -------------+-------------------------------
|
||||||
* Classic | *) TopButton, <--x) ButtonOnly
|
* Classic | *) TopButton, <--x) ButtonOnly
|
||||||
* | LeftButton
|
* | LeftButton
|
||||||
* Minimalistic | ButtonOnly NoButton
|
* Minimalistic | NoButton ButtonOnly
|
||||||
* Conglomerate | SubLabel Corners
|
* Conglomerate | SubLabel Corners
|
||||||
* ---------------------------------------------
|
* ---------------------------------------------
|
||||||
* *) toggled by openinlined_
|
* *) toggled by openinlined_
|
||||||
|
Loading…
Reference in New Issue
Block a user