From 0e1e2323ea9bbe84c1be084fe4c5554c89ef93c6 Mon Sep 17 00:00:00 2001 From: "Admiral H. Curtiss" Date: Tue, 26 Apr 2022 10:52:13 +0200 Subject: [PATCH] Qt/MemoryViewWidget: Keyboard navigation should observe the number of bytes per row instead of assuming 16. --- Source/Core/DolphinQt/Debugger/MemoryViewWidget.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/Core/DolphinQt/Debugger/MemoryViewWidget.cpp b/Source/Core/DolphinQt/Debugger/MemoryViewWidget.cpp index cbd45c94a7..eabec94872 100644 --- a/Source/Core/DolphinQt/Debugger/MemoryViewWidget.cpp +++ b/Source/Core/DolphinQt/Debugger/MemoryViewWidget.cpp @@ -471,19 +471,19 @@ void MemoryViewWidget::keyPressEvent(QKeyEvent* event) switch (event->key()) { case Qt::Key_Up: - m_address -= 16; + m_address -= m_bytes_per_row; Update(); return; case Qt::Key_Down: - m_address += 16; + m_address += m_bytes_per_row; Update(); return; case Qt::Key_PageUp: - m_address -= rowCount() * 16; + m_address -= rowCount() * m_bytes_per_row; Update(); return; case Qt::Key_PageDown: - m_address += rowCount() * 16; + m_address += rowCount() * m_bytes_per_row; Update(); return; default: