Ticket #7738: focus-hack.patch

File focus-hack.patch, 426 bytes (added by salty-horse, 11 years ago)
  • gui/ListWidget.cpp

     
    422422        case kSetPositionCmd:
    423423                if (_currentPos != (int)data) {
    424424                        _currentPos = data;
    425                         draw();
     425
     426                        // Scrollbar actions cause list focus (which triggers a redraw)
     427                        ((GUI::Dialog *)_boss)->setFocusWidget(this);
    426428                }
    427429                break;
    428430        }