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:
Richard Heck 2008-02-05 23:29:15 +00:00
parent 327d1bc6d3
commit a3b3115915
2 changed files with 5 additions and 3 deletions

View File

@ -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

View File

@ -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_