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/inc/listbox.hxx | |
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/inc/listbox.hxx')
-rw-r--r-- | vcl/inc/listbox.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/inc/listbox.hxx b/vcl/inc/listbox.hxx index 0485001216b0..4d714e418d81 100644 --- a/vcl/inc/listbox.hxx +++ b/vcl/inc/listbox.hxx @@ -427,7 +427,7 @@ public: sal_Int32 GetCurrentPos() const { return maLBWindow->GetCurrentPos(); } bool ProcessKeyInput( const KeyEvent& rKEvt ) { return maLBWindow->ProcessKeyInput( rKEvt ); } - bool HandleWheelAsCursorTravel( const CommandEvent& rCEvt ); + bool HandleWheelAsCursorTravel(const CommandEvent& rCEvt, Control& rControl); /** * Removes existing separators, and sets the position of the |