aboutsummaryrefslogtreecommitdiff
path: root/gui/widgets/scrollbar.h
diff options
context:
space:
mode:
authorThierry Crozat2018-07-23 23:48:56 +0100
committerThierry Crozat2018-07-24 00:27:11 +0100
commitbd98c6f045dab0c87ebdc08a542ef8486b740bea (patch)
tree4a02b5bcebb6aa668cde6f13d3100d96086559da /gui/widgets/scrollbar.h
parent211ef61fdf1f833267788511d5bcb354db78ee45 (diff)
downloadscummvm-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.
Diffstat (limited to 'gui/widgets/scrollbar.h')
-rw-r--r--gui/widgets/scrollbar.h1
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: