From bd98c6f045dab0c87ebdc08a542ef8486b740bea Mon Sep 17 00:00:00 2001 From: Thierry Crozat Date: Mon, 23 Jul 2018 23:48:56 +0100 Subject: 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. --- gui/widgets/scrollbar.h | 1 + 1 file changed, 1 insertion(+) (limited to 'gui/widgets') 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: -- cgit v1.2.3