[Scummvm-git-logs] scummvm master -> bfeaa30c493602724d10a3f3d2e57fb7c21e41bb

sev- noreply at scummvm.org
Thu Mar 19 23:26:49 UTC 2026


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .

Summary:
bfeaa30c49 GUI: Fix selection visibility during PgUp/PgDown in ListWidget


Commit: bfeaa30c493602724d10a3f3d2e57fb7c21e41bb
    https://github.com/scummvm/scummvm/commit/bfeaa30c493602724d10a3f3d2e57fb7c21e41bb
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2026-03-20T00:25:49+01:00

Commit Message:
GUI: Fix selection visibility during PgUp/PgDown in ListWidget

Fixes one of the issues mentioned in #16600

Changed paths:
    gui/widgets/list.cpp


diff --git a/gui/widgets/list.cpp b/gui/widgets/list.cpp
index dea2e40dd02..c75285bddbc 100644
--- a/gui/widgets/list.cpp
+++ b/gui/widgets/list.cpp
@@ -597,9 +597,13 @@ bool ListWidget::handleKeyDown(Common::KeyState state) {
 			}
 			// fall through
 		case Common::KEYCODE_PAGEDOWN:
+			clearSelection();
+			markSelectedItem(_selectedItem, false);
 			_selectedItem += _entriesPerPage - 1;
-			if (_selectedItem >= (int)_list.size() )
+			if (_selectedItem >= (int)_list.size())
 				_selectedItem = _list.size() - 1;
+
+			markSelectedItem(_selectedItem, true);
 			scrollToCurrent();
 			break;
 
@@ -665,9 +669,12 @@ bool ListWidget::handleKeyDown(Common::KeyState state) {
 			}
 			// fall through
 		case Common::KEYCODE_PAGEUP:
+			clearSelection();
+			markSelectedItem(_selectedItem, false);
 			_selectedItem -= _entriesPerPage - 1;
 			if (_selectedItem < 0)
 				_selectedItem = 0;
+			markSelectedItem(_selectedItem, true);
 			scrollToCurrent();
 			break;
 




More information about the Scummvm-git-logs mailing list