mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +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:
|
||||
if (cmd.button() == mouse_button::button3) {
|
||||
// There is no button to right click:
|
||||
if (geometry() == Corners ||
|
||||
if (decoration() == Minimalistic ||
|
||||
geometry() == Corners ||
|
||||
geometry() == SubLabel ||
|
||||
geometry() == NoButton) {
|
||||
geometry() == NoButton
|
||||
) {
|
||||
if (status_ == Open)
|
||||
setStatus(cur, Collapsed);
|
||||
else
|
||||
|
@ -103,7 +103,7 @@ public:
|
||||
* -------------+-------------------------------
|
||||
* Classic | *) TopButton, <--x) ButtonOnly
|
||||
* | LeftButton
|
||||
* Minimalistic | ButtonOnly NoButton
|
||||
* Minimalistic | NoButton ButtonOnly
|
||||
* Conglomerate | SubLabel Corners
|
||||
* ---------------------------------------------
|
||||
* *) toggled by openinlined_
|
||||
|
Loading…
Reference in New Issue
Block a user