mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-08 06:49:33 -06:00
Qt/MemoryViewWidget: Keyboard navigation should observe the number of bytes per row instead of assuming 16.
This commit is contained in:
@ -471,19 +471,19 @@ void MemoryViewWidget::keyPressEvent(QKeyEvent* event)
|
|||||||
switch (event->key())
|
switch (event->key())
|
||||||
{
|
{
|
||||||
case Qt::Key_Up:
|
case Qt::Key_Up:
|
||||||
m_address -= 16;
|
m_address -= m_bytes_per_row;
|
||||||
Update();
|
Update();
|
||||||
return;
|
return;
|
||||||
case Qt::Key_Down:
|
case Qt::Key_Down:
|
||||||
m_address += 16;
|
m_address += m_bytes_per_row;
|
||||||
Update();
|
Update();
|
||||||
return;
|
return;
|
||||||
case Qt::Key_PageUp:
|
case Qt::Key_PageUp:
|
||||||
m_address -= rowCount() * 16;
|
m_address -= rowCount() * m_bytes_per_row;
|
||||||
Update();
|
Update();
|
||||||
return;
|
return;
|
||||||
case Qt::Key_PageDown:
|
case Qt::Key_PageDown:
|
||||||
m_address += rowCount() * 16;
|
m_address += rowCount() * m_bytes_per_row;
|
||||||
Update();
|
Update();
|
||||||
return;
|
return;
|
||||||
default:
|
default:
|
||||||
|
Reference in New Issue
Block a user