diff --git a/ui/qt/packet_list.cpp b/ui/qt/packet_list.cpp index 4deecfc9bc..b2a263701e 100644 --- a/ui/qt/packet_list.cpp +++ b/ui/qt/packet_list.cpp @@ -882,7 +882,10 @@ void PacketList::mouseMoveEvent (QMouseEvent *event) void PacketList::keyPressEvent(QKeyEvent *event) { bool handled = false; - if (event->key() == Qt::Key_Down || event->key() == Qt::Key_Up) { + // If scrolling up/down, want to preserve horizontal scroll extent. + if (event->key() == Qt::Key_Down || event->key() == Qt::Key_Up || + event->key() == Qt::Key_PageDown || event->key() == Qt::Key_PageUp) + { if (currentIndex().isValid() && currentIndex().column() > 0) { int pos = horizontalScrollBar()->value(); QTreeView::keyPressEvent(event);