diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-09-08 15:21:10 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-09-08 21:27:08 +0200 |
commit | d05c1459f5b8150654ca0b7098cc331ba6009e07 (patch) | |
tree | bde0424008b8a92f0df9d5d24788139586215d59 /vcl/source/control/listbox.cxx | |
parent | 18939aadf534f97b3650544345957a0bea46825c (diff) |
tdf#136208 make combo/list/spin take focus on use of scroll wheel
So using the scrollwheel on those widgets when they do not have focus will
cause then to take focus. That will then cause the fontsize/fontname widgets to
reset back to the current document size/name if they are scrolled to a new
value, but their new value not explicitly applied to the current document,
when focus is restored to the document window.
Change-Id: I5d27e5e90c4d76d9cb3321878d82e22d40cacf81
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102261
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/source/control/listbox.cxx')
-rw-r--r-- | vcl/source/control/listbox.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/control/listbox.cxx b/vcl/source/control/listbox.cxx index fbada6496e89..a82e4ce0fb11 100644 --- a/vcl/source/control/listbox.cxx +++ b/vcl/source/control/listbox.cxx @@ -883,7 +883,7 @@ bool ListBox::PreNotify( NotifyEvent& rNEvt ) ) ) { - bDone = mpImplLB->HandleWheelAsCursorTravel( *rNEvt.GetCommandEvent() ); + bDone = mpImplLB->HandleWheelAsCursorTravel(*rNEvt.GetCommandEvent(), *this); } else { |