diff --git a/src/drivers/Qt/HexEditor.cpp b/src/drivers/Qt/HexEditor.cpp index 80b1d34e..a702747c 100644 --- a/src/drivers/Qt/HexEditor.cpp +++ b/src/drivers/Qt/HexEditor.cpp @@ -1012,6 +1012,7 @@ void QHexEdit::keyPressEvent(QKeyEvent *event) { lineOffset = maxLineOffset; } + vbar->setValue( lineOffset ); resetCursor(); } else if (event->matches(QKeySequence::MoveToPreviousPage)) @@ -1022,16 +1023,19 @@ void QHexEdit::keyPressEvent(QKeyEvent *event) { lineOffset = 0; } + vbar->setValue( lineOffset ); resetCursor(); } else if (event->matches(QKeySequence::MoveToEndOfDocument)) { lineOffset = maxLineOffset; + vbar->setValue( lineOffset ); resetCursor(); } else if (event->matches(QKeySequence::MoveToStartOfDocument)) { lineOffset = 0; + vbar->setValue( lineOffset ); resetCursor(); } else if (event->key() == Qt::Key_Tab && (cursorPosX < 32) )