diff options
author | Juergen Funk <juergen.funk_ml@cib.de> | 2014-10-21 15:28:02 +0200 |
---|---|---|
committer | Samuel Mehrbrodt <s.mehrbrodt@gmail.com> | 2014-11-03 11:31:34 +0000 |
commit | fa022a9c4fe74f3f67fb3c35ef49022842d7499b (patch) | |
tree | 52e1ddc35faa091a44984f2bb1ac3c58a4ec3f43 /vcl/source/control/ilstbox.cxx | |
parent | 98c95ce3a759a6f691c20cb1e376fa54a9dfdbc0 (diff) |
fdo#84795 Menu, DropDown-List don't disappear with right mouse click
this includes a fix to leave disabled menu entries disabled.
This reverts commit 454f5c3018c6d61d5872f7c23c7590c2157444e4.
Change-Id: Ifb66b0b241378437f040af19ec163da3cb8d815d
Reviewed-on: https://gerrit.libreoffice.org/12061
Reviewed-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com>
Tested-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com>
Diffstat (limited to 'vcl/source/control/ilstbox.cxx')
-rw-r--r-- | vcl/source/control/ilstbox.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/vcl/source/control/ilstbox.cxx b/vcl/source/control/ilstbox.cxx index 5dea2fdf416d..62db0c7afd92 100644 --- a/vcl/source/control/ilstbox.cxx +++ b/vcl/source/control/ilstbox.cxx @@ -3073,7 +3073,10 @@ void ImplListBoxFloatingWindow::StartFloat( bool bStartTracking ) if( pGrandparent->ImplIsAntiparallel() ) pGrandparentOutDev->ReMirror( aRect ); - StartPopupMode( aRect, FLOATWIN_POPUPMODE_DOWN ); + // mouse-button right: close the List-Box-Float-win and don't stop the handling fdo#84795 + const sal_uLong nFlags = FLOATWIN_POPUPMODE_PATHMOUSECANCELCLICK | FLOATWIN_POPUPMODE_ALLMOUSEBUTTONCLOSE; + + StartPopupMode( aRect, FLOATWIN_POPUPMODE_DOWN | nFlags ); if( nPos != LISTBOX_ENTRY_NOTFOUND ) mpImplLB->ShowProminentEntry( nPos ); |