diff --git a/src/gui/transferlistwidget.cpp b/src/gui/transferlistwidget.cpp index 2b00e46f1..3de291199 100644 --- a/src/gui/transferlistwidget.cpp +++ b/src/gui/transferlistwidget.cpp @@ -1285,9 +1285,16 @@ void TransferListWidget::displayListMenu() listMenu->popup(QCursor::pos()); } -void TransferListWidget::currentChanged(const QModelIndex ¤t, const QModelIndex&) +void TransferListWidget::currentChanged(const QModelIndex ¤t, const QModelIndex &previous) { qDebug("CURRENT CHANGED"); + + // Call base class to ensure Qt's accessibility system is notified of focus changes. + // This is critical for screen readers to announce the currently selected torrent. + // Without this call, users relying on assistive technologies cannot effectively + // navigate the torrent list with keyboard arrow keys. + QTreeView::currentChanged(current, previous); + BitTorrent::Torrent *torrent = nullptr; if (current.isValid()) { diff --git a/src/gui/transferlistwidget.h b/src/gui/transferlistwidget.h index 097dd809a..b19c0511a 100644 --- a/src/gui/transferlistwidget.h +++ b/src/gui/transferlistwidget.h @@ -110,7 +110,7 @@ private slots: void torrentDoubleClicked(); void displayListMenu(); void displayColumnHeaderMenu(); - void currentChanged(const QModelIndex ¤t, const QModelIndex&) override; + void currentChanged(const QModelIndex ¤t, const QModelIndex &previous) override; void setSelectedTorrentsSuperSeeding(bool enabled) const; void setSelectedTorrentsSequentialDownload(bool enabled) const; void setSelectedFirstLastPiecePrio(bool enabled) const;