[Scummvm-git-logs] scummvm master -> 0836f8badb601557321bf50aabfc246e1a99782b
sluicebox
noreply at scummvm.org
Wed Mar 25 02:19:09 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:
0836f8badb GUI: Fix SHIFT+UP/DOWN multi-selecting on single-select lists
Commit: 0836f8badb601557321bf50aabfc246e1a99782b
https://github.com/scummvm/scummvm/commit/0836f8badb601557321bf50aabfc246e1a99782b
Author: sluicebox (22204938+sluicebox at users.noreply.github.com)
Date: 2026-03-24T21:17:45-05:00
Commit Message:
GUI: Fix SHIFT+UP/DOWN multi-selecting on single-select lists
Changed paths:
gui/widgets/list.cpp
diff --git a/gui/widgets/list.cpp b/gui/widgets/list.cpp
index 9ad8be8ff35..5895477f26d 100644
--- a/gui/widgets/list.cpp
+++ b/gui/widgets/list.cpp
@@ -581,7 +581,7 @@ bool ListWidget::handleKeyDown(Common::KeyState state) {
if (_selectedItem < (int)_list.size() - 1) {
int newItem = _selectedItem + 1;
bool scrolled = false;
- if ( g_system->getEventManager()->getModifierState() & Common::KBD_SHIFT) {
+ if (_multiSelectEnabled && g_system->getEventManager()->getModifierState() & Common::KBD_SHIFT) {
// Skip selecting Group Headers
newItem = findSelectableItem(newItem, 1);
@@ -663,7 +663,7 @@ bool ListWidget::handleKeyDown(Common::KeyState state) {
if (_selectedItem > 0) {
int newItem = _selectedItem - 1;
bool scrolled = false;
- if (g_system->getEventManager()->getModifierState() & Common::KBD_SHIFT) {
+ if (_multiSelectEnabled && g_system->getEventManager()->getModifierState() & Common::KBD_SHIFT) {
// Skip selecting Group Headers
newItem = findSelectableItem(newItem, -1);
if (newItem != -1) {
More information about the Scummvm-git-logs
mailing list