diff options
author | Thierry Crozat | 2018-07-23 23:48:56 +0100 |
---|---|---|
committer | Thierry Crozat | 2018-07-24 00:27:11 +0100 |
commit | bd98c6f045dab0c87ebdc08a542ef8486b740bea (patch) | |
tree | 4a02b5bcebb6aa668cde6f13d3100d96086559da | |
parent | 211ef61fdf1f833267788511d5bcb354db78ee45 (diff) | |
download | scummvm-rg350-bd98c6f045dab0c87ebdc08a542ef8486b740bea.tar.gz scummvm-rg350-bd98c6f045dab0c87ebdc08a542ef8486b740bea.tar.bz2 scummvm-rg350-bd98c6f045dab0c87ebdc08a542ef8486b740bea.zip |
GUI: Handle continous scrolling in ScrollContainer
When keeping the scrollbar up or down arrow pressed in a
ScrollContainer is now scrolls continously, as it was
already doing in the ListWidget.
-rw-r--r-- | gui/widgets/scrollbar.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gui/widgets/scrollbar.h b/gui/widgets/scrollbar.h index 9fdc94c396..ad7e83f52b 100644 --- a/gui/widgets/scrollbar.h +++ b/gui/widgets/scrollbar.h @@ -72,6 +72,7 @@ public: void handleMouseEntered(int button) { setFlags(WIDGET_HILITED); } void handleMouseLeft(int button) { clearFlags(WIDGET_HILITED); _part = kNoPart; markAsDirty(); } void handleTickle(); + bool wantsFocus() { return true; } // FIXME - this should be private, but then we also have to add accessors // for _numEntries, _entriesPerPage and _currentPos. This again leads to the question: |